[FFmpeg-cvslog] avcodec/dvenc: clear all dsp contexts

Michael Niedermayer git at videolan.org
Fri Jul 18 00:58:32 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jul 18 00:48:34 2014 +0200| [c527c14d6323cafa3586d822d9c6fe96a2876102] | committer: Michael Niedermayer

avcodec/dvenc: clear all dsp contexts

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

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

 libavcodec/dvenc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/dvenc.c b/libavcodec/dvenc.c
index 4ea181c..c639bea 100644
--- a/libavcodec/dvenc.c
+++ b/libavcodec/dvenc.c
@@ -69,7 +69,9 @@ static av_cold int dvvideo_encode_init(AVCodecContext *avctx)
 
     dv_vlc_map_tableinit();
 
+    memset(&fdsp,0, sizeof(fdsp));
     memset(&mecc,0, sizeof(mecc));
+    memset(&pdsp,0, sizeof(pdsp));
     ff_fdctdsp_init(&fdsp, avctx);
     ff_me_cmp_init(&mecc, avctx);
     ff_pixblockdsp_init(&pdsp, avctx);



More information about the ffmpeg-cvslog mailing list