Mercurial > mplayer.hg
diff sub/subreader.c @ 33384:a60ae792b855
SAMI subs: start a new line if there's no space left to append to the
previous one.
| author | reimar |
|---|---|
| date | Thu, 19 May 2011 09:11:56 +0000 |
| parents | caaafbf05ecb |
| children | ab6d06f5b98b |
line wrap: on
line diff
--- a/sub/subreader.c Wed May 18 09:45:18 2011 +0000 +++ b/sub/subreader.c Thu May 19 09:11:56 2011 +0000 @@ -173,6 +173,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);
