From bb7bc3443dd94ed3a1aa265ff1e9d4b49e78e428 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 25 Feb 2013 03:33:18 +0100 Subject: af_biquads: memset(0) cache Fixes valgrind warnings Signed-off-by: Michael Niedermayer --- libavfilter/af_biquads.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavfilter/af_biquads.c') diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c index de0ba4248e..cae3e02b49 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; -- cgit v1.2.3