Commit 072c63c3 by Oliver Woodman

Handle stbl atoms with no samples.

Github issue: #554
parent 8c98c588
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment