SIGN IN SIGN UP

sub/sd_ass: subtitle timing rounding errors

Use floor(pts * 1000 + 1e-6) instead of llrint() for all timestamp
conversions to avoid floating-point precision errors causing early
subtitle presentation on boundry frames.

Fixes: #17453
Signed-off-by: Ricardo Fonseca <ricardofonseca94321@tecnico.ulisboa.pt>
R
Ricardo Fonseca committed
74271a7d80f6c59185699d0d6d2d0b64bcbe90ae
Parent: 13a3e3a
Committed by Kacper Michajłow <kasper93@gmail.com> on 5/31/2026, 1:29:50 AM