Initilaize array to known size
authorAnshul Maheshwari <er.anshul.maheshwari@gmail.com>
Tue, 20 Jan 2015 10:29:48 +0000 (15:59 +0530)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 20 Jan 2015 13:39:39 +0000 (14:39 +0100)
Signed-off-by: Anshul Maheshwari <er.anshul.maheshwari@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ccaption_dec.c

index 3498d09..686cba3 100644 (file)
@@ -63,7 +63,7 @@ enum cc_font {
     CCFONT_UNDERLINED_ITALICS,
 };
 
-static const unsigned char pac2_attribs[][3] = // Color, font, ident
+static const unsigned char pac2_attribs[32][3] = // Color, font, ident
 {
     { CCCOL_WHITE,   CCFONT_REGULAR,            0 },  // 0x40 || 0x60
     { CCCOL_WHITE,   CCFONT_UNDERLINED,         0 },  // 0x41 || 0x61