mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 22:03:49 +02:00
fix(conversion): fix sample end timestamp calculation error
This commit is contained in:
+1
-1
@@ -757,7 +757,7 @@ export class Conversion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let adjustedSampleTimestamp = Math.max(sample.timestamp - this._startTimestamp, 0);
|
let adjustedSampleTimestamp = Math.max(sample.timestamp - this._startTimestamp, 0);
|
||||||
lastSampleEndTimestamp = sample.timestamp + sample.duration;
|
lastSampleEndTimestamp = adjustedSampleTimestamp + sample.duration;
|
||||||
|
|
||||||
if (frameRate !== undefined) {
|
if (frameRate !== undefined) {
|
||||||
// Logic for skipping/repeating frames when a frame rate is set
|
// Logic for skipping/repeating frames when a frame rate is set
|
||||||
|
|||||||
Reference in New Issue
Block a user