summaryrefslogtreecommitdiff
path: root/tests/opencode
diff options
context:
space:
mode:
authorDrew Ritter <drew@primeradiant.com>2026-09-11 19:44:06 -0700
committerDrew Ritter <drew@primeradiant.com>2026-09-11 19:44:06 -0700
commite48cb57bf18c4599385aa0e091a817b2912950d0 (patch)
treef33eaf9c221377df8d58c1543dbc9da73011f0a6 /tests/opencode
parent8e3414cdb317cb12c8e556c9c57dd91d7144f61f (diff)
fix(movie): refine subtitle chunks using allocated durations
Address Task 2 review round 1: initial character budgets count spaces that disappear between chunks, so proportional timing can exceed --max-secs even when a further word-boundary split is feasible. Reallocate after splitting an over-target multiword cue, checking actual integer millisecond intervals each time. Coalescing runs once before refinement, and refinement stops at the available millisecond count or unsplittable words. This keeps tiny impossible readability targets bounded while preserving every word and the full measured scene interval. Added a failing six-second unequal-chunk regression and a tiny-target termination/positive-interval guard. The RED emitted 3273 ms for a cue with a 3000 ms target. GREEN: 43 safe contract tests and six covering existing offset/BOM tests pass. All verification remained text/data or mocked media boundaries.
Diffstat (limited to 'tests/opencode')
0 files changed, 0 insertions, 0 deletions