mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
fix(conversion): fixed using wrong timestamp when calculating lastCanvasEndTimestamp
This commit is contained in:
+1
-1
@@ -671,7 +671,7 @@ export class Conversion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let adjustedSampleTimestamp = Math.max(timestamp - this._startTimestamp, 0);
|
let adjustedSampleTimestamp = Math.max(timestamp - this._startTimestamp, 0);
|
||||||
lastCanvasEndTimestamp = timestamp + duration;
|
lastCanvasEndTimestamp = adjustedSampleTimestamp + 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