af_biquads: memset(0) cache
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 25 Feb 2013 02:33:18 +0000 (03:33 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 25 Feb 2013 03:39:26 +0000 (04:39 +0100)
Fixes valgrind warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_biquads.c

index de0ba42..cae3e02 100644 (file)
@@ -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;