avfilter/afir_template: skip wet gain if its 1

pull/388/head
Paul B Mahol 2 years ago
parent 91abbb9d02
commit a73f4ca49b
  1. 3
      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));

Loading…
Cancel
Save