Merge pull request #538 from jpcima/wav-chunk-padding

Process WAV chunk padding correctly
This commit is contained in:
JP Cimalando 2020-11-01 04:36:34 +01:00 committed by GitHub
commit a53c0b5d46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}