mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 13:53:53 +02:00
Small fix
This commit is contained in:
@@ -2263,7 +2263,7 @@ const getSampleInfo = (sampleTable: SampleTable, sampleIndex: number): SampleInf
|
|||||||
x => x.startIndex,
|
x => x.startIndex,
|
||||||
);
|
);
|
||||||
const offsetEntry = sampleTable.sampleCompositionTimeOffsets[offsetEntryIndex];
|
const offsetEntry = sampleTable.sampleCompositionTimeOffsets[offsetEntryIndex];
|
||||||
if (offsetEntry) {
|
if (offsetEntry && sampleIndex - offsetEntry.startIndex < offsetEntry.count) {
|
||||||
presentationTimestamp += offsetEntry.offset;
|
presentationTimestamp += offsetEntry.offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user