Backed out changeset 7545a33148f1 (bug 1287397) for Valgrind failures

This commit is contained in:
Gregory Szorc 2016-08-08 19:34:41 -07:00
parent 4e052f4a73
commit a1cbf6ab70

View File

@ -113,6 +113,8 @@ WAVTrackDemuxer::Init()
uint32_t aChunkName = mHeaderParser.GiveHeader().ChunkName();
uint32_t aChunkSize = mHeaderParser.GiveHeader().ChunkSize();
aChunkSize += aChunkSize % 2;
if (aChunkName == FRMT_CODE) {
if (!FmtChunkParserInit()) {
return false;
@ -133,8 +135,7 @@ WAVTrackDemuxer::Init()
}
break;
} else {
// Wave files are 2-byte aligned so we need to round up
mOffset += (aChunkSize + 1) & ~1; // Skip other irrelevant chunks.
mOffset += aChunkSize; // Skip other irrelevant chunks.
}
mHeaderParser.Reset();
}