fix(cli): align video output boundaries (#2490)

* fix(cli): align video output boundaries

* test(cli): honor CI ffmpeg fixture path

* test(cli): decouple duration precedence from ffmpeg

* test(cli): pin half-open video boundaries

* test(producer): refresh style 7 boundary golden
This commit is contained in:
Miguel Ángel
2026-07-15 16:07:44 -04:00
committed by GitHub
parent f45f762473
commit 35e623b4f3
7 changed files with 107 additions and 9 deletions
+2 -2
View File
@@ -583,7 +583,7 @@ export function initSandboxRuntimeModular(): void {
const computedEnd =
duration != null && duration > 0 ? start + duration : Number.POSITIVE_INFINITY;
return (
currentTime >= start && (Number.isFinite(computedEnd) ? currentTime <= computedEnd : true)
currentTime >= start && (Number.isFinite(computedEnd) ? currentTime < computedEnd : true)
);
};
@@ -2827,7 +2827,7 @@ export function initSandboxRuntimeModular(): void {
const mediaStart =
Number.parseFloat(rawEl.dataset.playbackStart ?? rawEl.dataset.mediaStart ?? "0") ||
0;
if (Number.isFinite(start) && state.currentTime >= start && state.currentTime <= end) {
if (Number.isFinite(start) && state.currentTime >= start && state.currentTime < end) {
if (!rawEl.paused) {
clock.attachAudioSource({ el: rawEl, compositionStart: start, mediaStart });
foundActive = true;