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:
Andreas Huber
2011-08-01 13:22:26 -07:00
parent 7702a59344
commit 05ea63da20

View File

@@ -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;
}