mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +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) {
|
||||
if (isFilling) {
|
||||
if (sequenceExtensionPosition == 0 && startCodeValue == START_EXTENSION) {
|
||||
sequenceExtensionPosition = length;
|
||||
sequenceExtensionPosition = length - bytesAlreadyPassed;
|
||||
} else {
|
||||
length -= bytesAlreadyPassed;
|
||||
isFilling = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user