[MPlayer-cvslog] r33471 - trunk/sub/subreader.c

reimar subversion at mplayerhq.hu
Thu May 19 11:11:57 CEST 2011


Author: reimar
Date: Thu May 19 11:11:56 2011
New Revision: 33471

Log:
SAMI subs: start a new line if there's no space left to append to the
previous one.

Modified:
   trunk/sub/subreader.c

Modified: trunk/sub/subreader.c
==============================================================================
--- trunk/sub/subreader.c	Wed May 18 11:45:18 2011	(r33470)
+++ trunk/sub/subreader.c	Thu May 19 11:11:56 2011	(r33471)
@@ -173,6 +173,8 @@ static subtitle *sub_read_line_sami(stre
 	    break;
 
 	case 3: /* get all text until '<' appears */
+	    if (p - text >= LINE_LEN)
+	        sami_add_line(current, text, &p);
 	    if (*s == '\0') break;
 	    else if (!strncasecmp (s, "<br>", 4)) {
                 sami_add_line(current, text, &p);


More information about the MPlayer-cvslog mailing list