Mercurial > mplayer.hg
changeset 35332:d6b957072297
subreader: do not skip the first char of ASS fields.
Without this change, fields that can be sometimes empty and
sometimes not, such as the Effect field, are counted in an
inconsistent way. Since the number of fields is used to find
where the text starts, it leads to internal field arriving
on the video.
Bug reported anonymously on the users mailing list.
author | cigaes |
---|---|
date | Tue, 20 Nov 2012 19:43:53 +0000 |
parents | 2bc3693278cb |
children | 701e78689c07 |
files | sub/subreader.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sub/subreader.c Mon Nov 19 19:37:31 2012 +0000 +++ b/sub/subreader.c Tue Nov 20 19:43:53 2012 +0000 @@ -677,7 +677,7 @@ tmp = line2; if(!(tmp=strchr(++tmp, ','))) break; if(brace && brace < tmp) break; // comma inside command - if(*(++tmp) == ' ') break; + if(tmp[1] == ' ') break; /* a space after a comma means we're already in a sentence */ line2 = tmp; }