mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Bug 1257931 - Fix assert in VBRI header parsing to actually check that we've been passed a reader starting with a frame sync. r=esawin
This commit is contained in:
parent
d65f8f726d
commit
4bb019056c
@ -1055,7 +1055,7 @@ FrameParser::VBRHeader::ParseVBRI(ByteReader* aReader) {
|
||||
MOZ_ASSERT(aReader);
|
||||
// ParseVBRI assumes that the ByteReader offset points to the beginning of a frame,
|
||||
// therefore as a simple check, we look for the presence of a frame sync at that position.
|
||||
MOZ_ASSERT(aReader->PeekU16() & 0xFFE0);
|
||||
MOZ_ASSERT((aReader->PeekU16() & 0xFFE0) == 0xFFE0);
|
||||
const size_t prevReaderOffset = aReader->Offset();
|
||||
|
||||
// VBRI have a fixed relative position, so let's check for it there.
|
||||
|
Loading…
x
Reference in New Issue
Block a user