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:
laaz 2001-05-01 21:28:18 +00:00
parent ce675485e3
commit 95ee0782d3
1 changed files with 1 additions and 1 deletions

View File

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