mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Backed out changeset 7545a33148f1 (bug 1287397) for Valgrind failures
This commit is contained in:
parent
4e052f4a73
commit
a1cbf6ab70
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user