summaryrefslogtreecommitdiffstats
path: root/sub
diff options
context:
space:
mode:
authorcigaes <cigaes@b3059339-0415-0410-9bf9-f77b7e298cf2>2012-11-20 19:43:53 +0000
committerwm4 <wm4@nowhere>2012-11-21 20:00:52 +0100
commit73618d11d4108e8c3f9ada2cf85bc48352e70eee (patch)
tree43ff03dcf33754ee030e991e4cbe6ae8455f66fb /sub
parent10a1ae7b720b7b116c98f78d611c92923559620e (diff)
downloadmpv-73618d11d4108e8c3f9ada2cf85bc48352e70eee.tar.bz2
mpv-73618d11d4108e8c3f9ada2cf85bc48352e70eee.tar.xz
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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35426 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'sub')
-rw-r--r--sub/subreader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/subreader.c b/sub/subreader.c
index adb12724c4..826bc3577b 100644
--- a/sub/subreader.c
+++ b/sub/subreader.c
@@ -672,7 +672,7 @@ static subtitle *sub_read_line_ssa(stream_t *st,subtitle *current,
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;
}