[FFmpeg-cvslog] af_biquads: memset(0) cache

Michael Niedermayer git at videolan.org
Mon Feb 25 04:49:39 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 25 03:33:18 2013 +0100| [bb7bc3443dd94ed3a1aa265ff1e9d4b49e78e428] | committer: Michael Niedermayer

af_biquads: memset(0) cache

Fixes valgrind warnings

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

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

 libavfilter/af_biquads.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c
index de0ba42..cae3e02 100644
--- a/libavfilter/af_biquads.c
+++ b/libavfilter/af_biquads.c
@@ -379,6 +379,7 @@ static int config_output(AVFilterLink *outlink)
     p->cache = av_realloc_f(p->cache, sizeof(ChanCache), inlink->channels);
     if (!p->cache)
         return AVERROR(ENOMEM);
+    memset(p->cache, 0, sizeof(ChanCache) * inlink->channels);
 
     switch (inlink->format) {
     case AV_SAMPLE_FMT_S16P: p->filter = biquad_s16; break;



More information about the ffmpeg-cvslog mailing list