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

pull/365/head
Paul B Mahol 3 years ago
parent 1da2dd5c77
commit 8c1b65feb6
  1. 4
      libavfilter/af_afreqshift.c

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

Loading…
Cancel
Save