Process WAV chunk padding correctly

This commit is contained in:
Jean Pierre Cimalando 2020-11-01 04:34:09 +01:00
parent 391fb7ab5b
commit 7bde1e32ec

View file

@ -231,7 +231,7 @@ bool FileMetadataReader::Impl::openRiff()
info.length = riffChunkSize;
riffChunks.push_back(info);
if (fseek(stream, riffChunkSize, SEEK_CUR) != 0)
if (fseek(stream, riffChunkSize + (riffChunkSize & 1), SEEK_CUR) != 0)
return false;
}