[vlc-devel] [PATCH 06/11] Increase the size of the buffer for CC text

Devin Heitmueller dheitmueller at kernellabs.com
Thu Dec 27 07:08:18 CET 2012


Make the buffer larger, since there are more HTML tags in the resulting output
stream.
---
 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 d094d5a..ef788ca 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -1115,7 +1115,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;
-- 
1.7.9.5




More information about the vlc-devel mailing list