[FFmpeg-cvslog] avfilter/af_afreqshift: do not forget to update coeffs at runtime
Paul B Mahol
git at videolan.org
Sat Aug 28 19:53:25 EEST 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Aug 28 18:44:17 2021 +0200| [8c1b65feb63e70eaa22c1462163573bea8b91695] | committer: Paul B Mahol
avfilter/af_afreqshift: do not forget to update coeffs at runtime
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c1b65feb63e70eaa22c1462163573bea8b91695
---
libavfilter/af_afreqshift.c | 4 ++++
1 file changed, 4 insertions(+)
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 {
More information about the ffmpeg-cvslog
mailing list