dv: zero dsp before init, this fixes use of uninitialized dct_bits
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 23:43:11 +0000 (01:43 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 23:43:11 +0000 (01:43 +0200)
Fixes CID732292
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/dv.c

index 6c11069..a7dfbdc 100644 (file)
@@ -297,6 +297,7 @@ av_cold int ff_dvvideo_init(AVCodecContext *avctx)
     }
 
     /* Generic DSP setup */
+    memset(&dsp,0, sizeof(dsp));
     ff_dsputil_init(&dsp, avctx);
     ff_set_cmp(&dsp, dsp.ildct_cmp, avctx->ildct_cmp);
     s->get_pixels = dsp.get_pixels;