You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avfilter/af_afreqshift: do not forget to update coeffs at runtime
This commit is contained 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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user