summaryrefslogtreecommitdiff
path: root/community/mplayer2/mplayer2-SAMI-subs.patch
blob: 8238167e29264c9c65ce87fae628fb4bb5321483 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur mplayer2-2.0.ori/sub/subreader.c mplayer2-2.0/sub/subreader.c
--- mplayer2-2.0.ori/sub/subreader.c	2011-03-24 17:40:29.000000000 -0400
+++ mplayer2-2.0/sub/subreader.c	2011-10-14 15:04:47.196477670 -0400
@@ -179,6 +179,8 @@
 	    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);