changeset 33421:f10754220d42

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.
author iive
date Sat, 28 May 2011 20:53:14 +0000
parents ab72da1e2a28
children 3cda35c45f21
files mpcommon.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
             }