Fix NALU extraction of unit starts with a 0x00 nalType
by not backing up beyond the start of the nal unit. Change-Id: I5fba9913202de416e634e5f39181be62b72b2469 related-to-bug: 4770290
This commit is contained in:
@@ -188,7 +188,7 @@ status_t getNextNALUnit(
|
||||
}
|
||||
|
||||
size_t endOffset = offset - 2;
|
||||
while (data[endOffset - 1] == 0x00) {
|
||||
while (endOffset > startOffset + 1 && data[endOffset - 1] == 0x00) {
|
||||
--endOffset;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user