mirror of
https://github.com/androidx/media.git
synced 2025-05-05 14:40:50 +08:00
Fix sequence extension position calculation
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=163814942
This commit is contained in:
parent
893c7f34ba
commit
395249a950
@ -257,7 +257,7 @@ public final class H262Reader implements ElementaryStreamReader {
|
|||||||
public boolean onStartCode(int startCodeValue, int bytesAlreadyPassed) {
|
public boolean onStartCode(int startCodeValue, int bytesAlreadyPassed) {
|
||||||
if (isFilling) {
|
if (isFilling) {
|
||||||
if (sequenceExtensionPosition == 0 && startCodeValue == START_EXTENSION) {
|
if (sequenceExtensionPosition == 0 && startCodeValue == START_EXTENSION) {
|
||||||
sequenceExtensionPosition = length;
|
sequenceExtensionPosition = length - bytesAlreadyPassed;
|
||||||
} else {
|
} else {
|
||||||
length -= bytesAlreadyPassed;
|
length -= bytesAlreadyPassed;
|
||||||
isFilling = false;
|
isFilling = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user