mirror of https://github.com/mpv-player/mpv
Fixed segfault (microdvd format, many lines)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@679 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ce675485e3
commit
95ee0782d3
|
@ -113,7 +113,7 @@ subtitle *sub_read_line_microdvd(FILE *fd,subtitle *current) {
|
|||
while ((next =sub_readtext (next, &(current->text[i])))) {
|
||||
if (current->text[i]==ERR) {return ERR;}
|
||||
i++;
|
||||
if (i>SUB_MAX_TEXT) { printf ("Too many lines in a subtitle\n");current->lines=i;return;}
|
||||
if (i>=SUB_MAX_TEXT) { printf ("Too many lines in a subtitle\n");current->lines=i;return;}
|
||||
}
|
||||
current->lines=i+1;
|
||||
|
||||
|
|
Loading…
Reference in New Issue