cook: fix use of uninitialized variable
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Nov 2012 23:51:37 +0000 (00:51 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Nov 2012 00:03:52 +0000 (01:03 +0100)
Fixes CID741418
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/cook.c

index 118d1af..cc256f6 100644 (file)
@@ -1057,7 +1057,7 @@ static av_cold int cook_decode_init(AVCodecContext *avctx)
     int extradata_size = avctx->extradata_size;
     int s = 0;
     unsigned int channel_mask = 0;
-    int samples_per_frame;
+    int samples_per_frame = 0;
     int ret;
     q->avctx = avctx;