Commit 8c1b65fe authored by Paul B Mahol's avatar Paul B Mahol

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

parent 1da2dd5c
...@@ -321,6 +321,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) ...@@ -321,6 +321,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFrame *out; AVFrame *out;
ThreadData td; 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)) { if (av_frame_is_writable(in)) {
out = in; out = in;
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment