# HG changeset patch # User iive # Date 1306615994 0 # Node ID f10754220d427d9746648646f104a4d0516c20f2 # Parent ab72da1e2a2843acff64ad535444729f347dde80 Workaround embedded ssa/ass never hiding with -noass. The subtitles are not parsed, thus endpts is always invalid. Limit it to 4 seconds in that case. diff -r ab72da1e2a28 -r f10754220d42 mpcommon.c --- a/mpcommon.c Sat May 28 11:08:48 2011 +0000 +++ b/mpcommon.c Sat May 28 20:53:14 2011 +0000 @@ -272,6 +272,7 @@ len -= p - packet; packet = p; } + if (endpts == MP_NOPTS_VALUE) endpts = subpts + 4; sub_add_text(&subs, packet, len, endpts, 1); set_osd_subtitle(&subs); }