You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/afir_template: skip wet gain if its 1
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user