mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
af_biquads: memset(0) cache
Fixes valgrind warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
35aaa306ac
commit
bb7bc3443d
@ -379,6 +379,7 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
p->cache = av_realloc_f(p->cache, sizeof(ChanCache), inlink->channels);
|
p->cache = av_realloc_f(p->cache, sizeof(ChanCache), inlink->channels);
|
||||||
if (!p->cache)
|
if (!p->cache)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
memset(p->cache, 0, sizeof(ChanCache) * inlink->channels);
|
||||||
|
|
||||||
switch (inlink->format) {
|
switch (inlink->format) {
|
||||||
case AV_SAMPLE_FMT_S16P: p->filter = biquad_s16; break;
|
case AV_SAMPLE_FMT_S16P: p->filter = biquad_s16; break;
|
||||||
|
Loading…
Reference in New Issue
Block a user