avfilter/af_biquads: make sure that biquad filter still works

This commit is contained in:
Paul B Mahol 2020-11-24 14:24:18 +01:00
parent 040e989223
commit c6a7ca271b

View File

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