Fix a bug in WavCodec.cpp

Before the fix it was assumed that the data chunk immediately
follows the fmt chunk but this is not always the case.