[FFmpeg-cvslog] indeo4: prevent printing uninitialized variable

Michael Niedermayer git at videolan.org
Thu Oct 18 20:45:01 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 18 20:41:51 2012 +0200| [23b203014f5dbd85b75a6b97597be9c877cd3a1b] | committer: Michael Niedermayer

indeo4: prevent printing uninitialized variable

Fixes CID703822
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23b203014f5dbd85b75a6b97597be9c877cd3a1b
---

 libavcodec/indeo4.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c
index bb5ec10..a3d7e6c 100644
--- a/libavcodec/indeo4.c
+++ b/libavcodec/indeo4.c
@@ -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;



More information about the ffmpeg-cvslog mailing list