aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/indeo4.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-18 20:41:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-18 20:41:51 +0200
commit23b203014f5dbd85b75a6b97597be9c877cd3a1b (patch)
treef65fa8e1a49be6aa10aff78cad231f34323e7660 /libavcodec/indeo4.c
parent2b1a2466c7f0ec59b98beac583bea944c82e25dc (diff)
downloadffmpeg-23b203014f5dbd85b75a6b97597be9c877cd3a1b.tar.gz
indeo4: prevent printing uninitialized variable
Fixes CID703822 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/indeo4.c')
-rw-r--r--libavcodec/indeo4.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c
index bb5ec10309..a3d7e6cde1 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;