OSDN Git Service

indeo4: prevent printing uninitialized variable
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 18 Oct 2012 18:41:51 +0000 (20:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 18 Oct 2012 18:41:51 +0000 (20:41 +0200)
Fixes CID703822
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/indeo4.c

index bb5ec10..a3d7e6c 100644 (file)
@@ -197,6 +197,7 @@ static int decode_pic_hdr(IVI45DecContext *ctx, AVCodecContext *avctx)
 
     /* decode subdivision of the planes */
     pic_conf.luma_bands = decode_plane_subdivision(&ctx->gb);
+    pic_conf.chroma_bands = 0;
     if (pic_conf.luma_bands)
         pic_conf.chroma_bands = decode_plane_subdivision(&ctx->gb);
     ctx->is_scalable = pic_conf.luma_bands != 1 || pic_conf.chroma_bands != 1;