From 50b3cd22dd70658b39abd0ced31b495d4d0a4b1b Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 6 Jan 2018 14:58:00 +0100 Subject: [PATCH] avfilter/av_biquads: scale a0 too Fixes bug when using commands to alter coefficients. Signed-off-by: Paul B Mahol --- libavfilter/af_biquads.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c index 6e60e3b1b7..d5c3823e64 100644 --- a/libavfilter/af_biquads.c +++ b/libavfilter/af_biquads.c @@ -382,6 +382,7 @@ static int config_filter(AVFilterLink *outlink, int reset) s->b0 /= s->a0; s->b1 /= s->a0; s->b2 /= s->a0; + s->a0 /= s->a0; s->cache = av_realloc_f(s->cache, sizeof(ChanCache), inlink->channels); if (!s->cache)