1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 07:42:17 +00:00

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
This commit is contained in:
cigaes 2012-11-20 19:43:53 +00:00 committed by wm4
parent 10a1ae7b72
commit 73618d11d4

View File

@ -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;
}