bmp: Fix warning X may be used uninitialized in this function
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 23 Feb 2013 13:03:18 +0000 (14:03 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 23 Feb 2013 13:03:18 +0000 (14:03 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bmp.c

index dddc818..fb69396 100644 (file)
@@ -50,7 +50,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
     BiCompression comp;
     unsigned int ihsize;
     int i, j, n, linesize, ret;
-    uint32_t rgb[3];
+    uint32_t rgb[3] = {0};
     uint32_t alpha = 0;
     uint8_t *ptr;
     int dsize;