From 3d6d127cd022c6d359bbf185dd136445b1411414 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 7 Oct 2022 13:28:03 +0200 Subject: [PATCH] avfilter/af_biquads: fix bandpass for zdf --- libavfilter/af_biquads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_biquads.c b/libavfilter/af_biquads.c index 03165bf22d..49ad0a471f 100644 --- a/libavfilter/af_biquads.c +++ b/libavfilter/af_biquads.c @@ -729,7 +729,7 @@ static void convert_dir2zdf(BiquadsContext *s, int sample_rate) a[1] = g * a[0]; a[2] = g * a[1]; m[0] = 0.; - m[1] = s->csg ? 1. : 2.; + m[1] = s->csg ? 1. : k; m[2] = 0.; break; case bandreject: