Browse Source

af_biquads: memset(0) cache

Fixes valgrind warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.2
Michael Niedermayer 12 years ago
parent
commit
bb7bc3443d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/af_biquads.c

+ 1
- 0
libavfilter/af_biquads.c View 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;


Loading…
Cancel
Save