mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
420fe5dce2
commit
702d88d999
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user