Commit 50b3cd22 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/av_biquads: scale a0 too

Fixes bug when using commands to alter coefficients.
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent bfe397e4
...@@ -382,6 +382,7 @@ static int config_filter(AVFilterLink *outlink, int reset) ...@@ -382,6 +382,7 @@ static int config_filter(AVFilterLink *outlink, int reset)
s->b0 /= s->a0; s->b0 /= s->a0;
s->b1 /= s->a0; s->b1 /= s->a0;
s->b2 /= s->a0; s->b2 /= s->a0;
s->a0 /= s->a0;
s->cache = av_realloc_f(s->cache, sizeof(ChanCache), inlink->channels); s->cache = av_realloc_f(s->cache, sizeof(ChanCache), inlink->channels);
if (!s->cache) if (!s->cache)
......
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