fix(conversion): fix sample end timestamp calculation error

This commit is contained in:
Yukiniro
2025-08-13 23:06:11 +08:00
parent 0348eda8a9
commit 88b0b5f46f
+1 -1
View File
@@ -757,7 +757,7 @@ export class Conversion {
}
let adjustedSampleTimestamp = Math.max(sample.timestamp - this._startTimestamp, 0);
lastSampleEndTimestamp = sample.timestamp + sample.duration;
lastSampleEndTimestamp = adjustedSampleTimestamp + sample.duration;
if (frameRate !== undefined) {
// Logic for skipping/repeating frames when a frame rate is set