Commit 5e689b65 authored by Michael Niedermayer's avatar Michael Niedermayer

dv: zero dsp before init, this fixes use of uninitialized dct_bits

Fixes CID732292
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e0909ff1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment