diff options
Diffstat (limited to 'libavfilter/af_afreqshift.c')
-rw-r--r-- | libavfilter/af_afreqshift.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/af_afreqshift.c b/libavfilter/af_afreqshift.c index 90f0c3014e..0410bde70b 100644 --- a/libavfilter/af_afreqshift.c +++ b/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 { |