Bug 1145517: Properly skip the NAL's emulation prevention byte. r=cpearce

Fix typo.
If a sequence of 0x000003 is found, the 0x03 byte is to be skipped.
This commit is contained in:
Jean-Yves Avenard 2015-03-20 18:39:11 +11:00
parent 420fe5dce2
commit 702d88d999

View File

@ -116,7 +116,7 @@ H264::DecodeNALUnit(const ByteBuffer* aNAL)
uint32_t zeros = 0;
while (reader.Remaining()) {
uint8_t byte = reader.ReadU8();
if (zeros < 2 || byte == 0x03) {
if (zeros < 2 || byte != 0x03) {
rbsp->AppendElement(byte);
}
if (byte == 0) {