mirror of
https://github.com/samsonjs/media.git
synced 2026-04-12 12:25:47 +00:00
parent
8c98c588e8
commit
072c63c33e
1 changed files with 4 additions and 1 deletions
|
|
@ -102,10 +102,13 @@ import java.util.List;
|
|||
int fixedSampleSize = stsz.readUnsignedIntToInt();
|
||||
int sampleCount = stsz.readUnsignedIntToInt();
|
||||
|
||||
long[] offsets = new long[sampleCount];
|
||||
int[] sizes = new int[sampleCount];
|
||||
long[] timestamps = new long[sampleCount];
|
||||
long[] offsets = new long[sampleCount];
|
||||
int[] flags = new int[sampleCount];
|
||||
if (sampleCount == 0) {
|
||||
return new TrackSampleTable(offsets, sizes, timestamps, flags);
|
||||
}
|
||||
|
||||
// Prepare to read chunk offsets.
|
||||
chunkOffsets.setPosition(Atom.FULL_HEADER_SIZE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue