mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue