[FFmpeg-cvslog] avfilter/af_biquads: make sure that biquad filter still works

Paul B Mahol git at videolan.org
Tue Nov 24 15:27:38 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Nov 24 14:24:18 2020 +0100| [c6a7ca271b9cead3595cef09b8e455ff4b3f198a] | committer: Paul B Mahol

avfilter/af_biquads: make sure that biquad filter still works

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c6a7ca271b9cead3595cef09b8e455ff4b3f198a
---

 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) {



More information about the ffmpeg-cvslog mailing list