Mercurial > mplayer.hg
changeset 678:9088ebc5b5b5
Fixed segfault (microdvd format, many lines)
author | laaz |
---|---|
date | Tue, 01 May 2001 21:28:18 +0000 |
parents | ee2dac2cc633 |
children | ad25efe7a2bc |
files | subreader.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/subreader.c Tue May 01 20:24:31 2001 +0000 +++ b/subreader.c Tue May 01 21:28:18 2001 +0000 @@ -113,7 +113,7 @@ 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;