diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-12-12 12:26:48 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-12-12 20:29:07 +0100 |
commit | a73f4ca49b67ecb317c845eff1b02cadd9e513b9 (patch) | |
tree | fa19d4470fcdade8d2d15a4cde9b20a4f9fc7ccc | |
parent | 91abbb9d024817f6e4cf064a0db21c4979912840 (diff) | |
download | ffmpeg-a73f4ca49b67ecb317c845eff1b02cadd9e513b9.tar.gz |
avfilter/afir_template: skip wet gain if its 1
-rw-r--r-- | libavfilter/afir_template.c | 3 |
1 files changed, 3 insertions, 0 deletions
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)); |