aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-12 01:43:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-12 01:43:11 +0200
commit5e689b65ce9c945c61d0f07394541a0440316757 (patch)
treef1d1bb6ec717316320eaa948ff24f89cb49e6b1f
parente0909ff1584dc90499409707c5f91bf6ce78b09e (diff)
downloadffmpeg-5e689b65ce9c945c61d0f07394541a0440316757.tar.gz
dv: zero dsp before init, this fixes use of uninitialized dct_bits
Fixes CID732292 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/dv.c1
1 files changed, 1 insertions, 0 deletions
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;