From 5e689b65ce9c945c61d0f07394541a0440316757 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 12 Oct 2012 01:43:11 +0200 Subject: dv: zero dsp before init, this fixes use of uninitialized dct_bits Fixes CID732292 Signed-off-by: Michael Niedermayer --- libavcodec/dv.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec') diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 6c11069ba3..a7dfbdc1b2 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -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; -- cgit v1.2.3