Small fix

This commit is contained in:
Vanilagy
2025-01-02 18:37:34 +01:00
parent af26b4aab4
commit ad653434a6
+1 -1
View File
@@ -2263,7 +2263,7 @@ const getSampleInfo = (sampleTable: SampleTable, sampleIndex: number): SampleInf
x => x.startIndex,
);
const offsetEntry = sampleTable.sampleCompositionTimeOffsets[offsetEntryIndex];
if (offsetEntry) {
if (offsetEntry && sampleIndex - offsetEntry.startIndex < offsetEntry.count) {
presentationTimestamp += offsetEntry.offset;
}