[MPlayer-cvslog] r22159 - trunk/subreader.c

uau subversion at mplayerhq.hu
Tue Feb 6 00:25:51 CET 2007


Author: uau
Date: Tue Feb  6 00:25:50 2007
New Revision: 22159

Modified:
   trunk/subreader.c

Log:
Fix code updating subtitle array which only moved the text, not endpts.
Led to multiple subtitles on screen disappearing too early without -ass.


Modified: trunk/subreader.c
==============================================================================
--- trunk/subreader.c	(original)
+++ trunk/subreader.c	Tue Feb  6 00:25:50 2007
@@ -2336,8 +2336,10 @@
     if (pts == MP_NOPTS_VALUE || (endpts != MP_NOPTS_VALUE && pts >= endpts)) {
       int j;
       free(sub->text[i]);
-      for (j = i + 1; j < sub->lines; j++)
+      for (j = i + 1; j < sub->lines; j++) {
         sub->text[j - 1] = sub->text[j];
+        sub->endpts[j - 1] = sub->endpts[j];
+      }
       sub->lines--;
       changed = 1;
     } else



More information about the MPlayer-cvslog mailing list