]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/av_biquads: scale a0 too
authorPaul B Mahol <onemda@gmail.com>
Sat, 6 Jan 2018 13:58:00 +0000 (14:58 +0100)
committerPaul B Mahol <onemda@gmail.com>
Sat, 6 Jan 2018 13:58:00 +0000 (14:58 +0100)
Fixes bug when using commands to alter coefficients.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_biquads.c

index 6e60e3b1b7bcd68f3739e3cb78eda80cea754fd4..d5c3823e6446ccf52fd0045da5c207d4e6be997c 100644 (file)
@@ -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)