Skip to content

ArteCheck: round the tolerated minimum duration to whole frames - #304

Merged
niksedk merged 1 commit into
mainfrom
claude/arte-check-tolerance-frame-rounding
Oct 8, 2026
Merged

niksedk merged 1 commit into
mainfrom
claude/arte-check-tolerance-frame-rounding

Conversation

@niksedk

@niksedk niksedk commented Oct 8, 2026

Copy link
Copy Markdown
Member

At 25 fps with a 25-frame minimum and 15% tolerance the accepted minimum is 21.25 frames (850 ms). The message showed it as "21 fr" (FormatDuration rounds to frames), but the check compared against 850 ms, so a 21-frame subtitle was reported. The dialog split (Ceiling → 22-frame parts) and the gap-fix capacity used the same unrounded value.

AcceptedMinimumDurationMs now rounds the tolerance result with RoundToFrame once, so all four places agree: 21 frames accepted, 20 reported. Same rule as Triathlon-rally's WebEditor fix (SubtitleEdit/subtitleedit#15185). The short-minimum branch is already whole frames.

Tests: DurationToleranceTests (20/21/22 frames + message). The 21-frame case fails before the fix; 93/93 pass.

🤖 Generated with Claude Code

25 frames - 15% = 21.25 frames: the message showed "21 fr" but the check
compared against 850 ms, so 21 frames was reported. The accepted minimum is now
frame-rounded once, so the displayed limit, the duration check, dialog splits
and gap fixes agree: 21 frames accepted, 20 reported (matches Triathlon-rally's
web checker).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@niksedk
niksedk merged commit d4cf468 into main Oct 8, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant