mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix off-by-one-bug preventing NAL unit detection at the limit.
This commit is contained in:
parent
b03c5c5753
commit
abac6b7dd6
@ -161,7 +161,7 @@ public final class Mp4Util {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int limit = endOffset - 2;
|
int limit = endOffset - 1;
|
||||||
// We're looking for the NAL unit start code prefix 0x000001, followed by a byte that matches
|
// We're looking for the NAL unit start code prefix 0x000001, followed by a byte that matches
|
||||||
// the specified type. The value of i tracks the index of the third byte in the four bytes
|
// the specified type. The value of i tracks the index of the third byte in the four bytes
|
||||||
// being examined.
|
// being examined.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user