mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-29 11:53:52 +02:00
Small fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user