avfilter/af_afreqshift: do not forget to update coeffs at runtime

This commit is contained in:
Paul B Mahol 2021-08-28 18:44:17 +02:00
parent 1da2dd5c77
commit 8c1b65feb6

View File

@ -321,6 +321,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFrame *out;
ThreadData td;
if (s->old_nb_coeffs != s->nb_coeffs)
compute_coefs(s->cd, s->cf, s->nb_coeffs * 2, 2. * 20. / inlink->sample_rate);
s->old_nb_coeffs = s->nb_coeffs;
if (av_frame_is_writable(in)) {
out = in;
} else {