Commit bb7bc344 authored by Michael Niedermayer's avatar Michael Niedermayer

af_biquads: memset(0) cache

Fixes valgrind warnings
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 35aaa306
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment