mediabunny 1.7.4 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17344,7 +17344,7 @@ ${cue.notes ?? ""}`;
17344
17344
  return;
17345
17345
  }
17346
17346
  let adjustedSampleTimestamp = Math.max(timestamp - this._startTimestamp, 0);
17347
- lastCanvasEndTimestamp = timestamp + duration;
17347
+ lastCanvasEndTimestamp = adjustedSampleTimestamp + duration;
17348
17348
  if (frameRate !== void 0) {
17349
17349
  const alignedTimestamp = Math.floor(adjustedSampleTimestamp * frameRate) / frameRate;
17350
17350
  if (lastCanvas !== null) {
@@ -17406,7 +17406,7 @@ ${cue.notes ?? ""}`;
17406
17406
  return;
17407
17407
  }
17408
17408
  let adjustedSampleTimestamp = Math.max(sample.timestamp - this._startTimestamp, 0);
17409
- lastSampleEndTimestamp = sample.timestamp + sample.duration;
17409
+ lastSampleEndTimestamp = adjustedSampleTimestamp + sample.duration;
17410
17410
  if (frameRate !== void 0) {
17411
17411
  const alignedTimestamp = Math.floor(adjustedSampleTimestamp * frameRate) / frameRate;
17412
17412
  if (lastSample !== null) {