[MPlayer-cvslog] r33472 - branches/1.0rc4/subreader.c

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


Author: reimar
Date: Thu May 19 11:17:51 2011
New Revision: 33472

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

Modified:
   branches/1.0rc4/subreader.c

Modified: branches/1.0rc4/subreader.c
==============================================================================
--- branches/1.0rc4/subreader.c	Thu May 19 11:11:56 2011	(r33471)
+++ branches/1.0rc4/subreader.c	Thu May 19 11:17:51 2011	(r33472)
@@ -171,6 +171,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