Fix data_offset not present bug in FragmentedMp4Extractor
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=131183033
This commit is contained in:
parent
ef7dd697b1
commit
fd3d7be9c0
@ -664,8 +664,9 @@ public final class FragmentedMp4Extractor implements Extractor {
|
||||
DefaultSampleValues defaultSampleValues = fragment.header;
|
||||
|
||||
fragment.trunLength[index] = trun.readUnsignedIntToInt();
|
||||
fragment.trunDataPosition[index] = fragment.dataPosition;
|
||||
if ((atomFlags & 0x01 /* data_offset_present */) != 0) {
|
||||
fragment.trunDataPosition[index] = fragment.dataPosition + trun.readInt();
|
||||
fragment.trunDataPosition[index] += trun.readInt();
|
||||
}
|
||||
|
||||
boolean firstSampleFlagsPresent = (atomFlags & 0x04 /* first_sample_flags_present */) != 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user