Sanity-check number of lines in CC subtitle

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21253 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2006-11-25 22:18:40 +00:00
parent 53ba4dd6eb
commit a32cb8df50
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ static void append_char(char c)
if(c=='\n')
{
if(cursor_pos>0)
if(cursor_pos>0 && bb->lines < SUB_MAX_TEXT)
bb->lines++;cursor_pos=0;
}
else