[FFmpeg-cvslog] dv: zero dsp before init, this fixes use of uninitialized dct_bits

Michael Niedermayer git at videolan.org
Fri Oct 12 02:21:52 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Oct 12 01:43:11 2012 +0200| [5e689b65ce9c945c61d0f07394541a0440316757] | committer: Michael Niedermayer

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

Fixes CID732292
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5e689b65ce9c945c61d0f07394541a0440316757
---

 libavcodec/dv.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index 6c11069..a7dfbdc 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;



More information about the ffmpeg-cvslog mailing list