From a32cb8df50d083d7ce49b67709fc67a376a836f2 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 25 Nov 2006 22:18:40 +0000 Subject: [PATCH] Sanity-check number of lines in CC subtitle git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21253 b3059339-0415-0410-9bf9-f77b7e298cf2 --- sub_cc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sub_cc.c b/sub_cc.c index d8b847541d..c2580d0a29 100644 --- a/sub_cc.c +++ b/sub_cc.c @@ -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