[vlc-commits] Increase the size of the buffer for CC text

Devin Heitmueller git at videolan.org
Mon Dec 31 14:00:04 CET 2012


vlc | branch: master | Devin Heitmueller <dheitmueller at kernellabs.com> | Thu Dec 27 01:08:18 2012 -0500| [4f42eeeebb18cb2b5acc623d49225335266c099a] | committer: Rafaël Carré

Increase the size of the buffer for CC text

Make the buffer larger, since there are more HTML tags in the resulting output
stream.

Signed-off-by: Rafaël Carré <funman at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f42eeeebb18cb2b5acc623d49225335266c099a
---

 modules/codec/cc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index f20ae20..74a35d9 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -1097,7 +1097,7 @@ static bool Eia608Parse( eia608_t *h, int i_channel_selected, const uint8_t data
 
 static char *Eia608Text( eia608_t *h, bool b_html )
 {
-    const int i_size = EIA608_SCREEN_ROWS * 3 * EIA608_SCREEN_COLUMNS+1;
+    const int i_size = EIA608_SCREEN_ROWS * 10 * EIA608_SCREEN_COLUMNS+1;
     struct eia608_screen *screen = &h->screen[h->i_screen];
     bool b_first = true;
     char *psz;



More information about the vlc-commits mailing list