From c6a7ca271b9cead3595cef09b8e455ff4b3f198a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 24 Nov 2020 14:24:18 +0100 Subject: avfilter/af_biquads: make sure that biquad filter still works --- 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 549724ec4e..3ec26d2a9d 100644 --- a/libavfilter/af_biquads.c +++ b/libavfilter/af_biquads.c @@ -440,7 +440,7 @@ static int config_filter(AVFilterLink *outlink, int reset) return 0; } - if (w0 > M_PI || w0 <= 0.) + if ((w0 > M_PI || w0 <= 0.) && (s->filter_type != biquad)) return AVERROR(EINVAL); switch (s->width_type) { -- cgit v1.2.3