diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-25 03:33:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-25 04:39:26 +0100 |
commit | bb7bc3443dd94ed3a1aa265ff1e9d4b49e78e428 (patch) | |
tree | b17769ec51f70dc527b854f97a12b696d34d21e3 /libavfilter | |
parent | 35aaa306ac2d6f699af430a7d4a3b85790d2269d (diff) | |
download | ffmpeg-bb7bc3443dd94ed3a1aa265ff1e9d4b49e78e428.tar.gz |
af_biquads: memset(0) cache
Fixes valgrind warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_biquads.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |