[FFmpeg-cvslog] avfilter/afir_template: skip wet gain if its 1

Paul B Mahol git at videolan.org
Mon Dec 12 21:26:04 EET 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Dec 12 12:26:48 2022 +0100| [a73f4ca49b67ecb317c845eff1b02cadd9e513b9] | committer: Paul B Mahol

avfilter/afir_template: skip wet gain if its 1

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a73f4ca49b67ecb317c845eff1b02cadd9e513b9
---

 libavfilter/afir_template.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/afir_template.c b/libavfilter/afir_template.c
index 712f4b7417..bd8a907bd4 100644
--- a/libavfilter/afir_template.c
+++ b/libavfilter/afir_template.c
@@ -338,6 +338,9 @@ static int fn(fir_quantum)(AVFilterContext *ctx, AVFrame *out, int ch, int offse
         fn(fir_fadd)(s, ptr, dst, nb_samples);
     }
 
+    if (s->wet_gain == 1.f)
+        return 0;
+
     if (min_part_size >= 8) {
 #if DEPTH == 32
         s->fdsp->vector_fmul_scalar(ptr, ptr, s->wet_gain, FFALIGN(nb_samples, 4));



More information about the ffmpeg-cvslog mailing list