mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avfilter/af_afreqshift: do not forget to update coeffs at runtime
This commit is contained in:
parent
1da2dd5c77
commit
8c1b65feb6
@ -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…
Reference in New Issue
Block a user