aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-11-26 13:13:42 +0100
committerPaul B Mahol <onemda@gmail.com>2020-11-26 13:17:20 +0100
commitf7d7ce4717a1331b17d3b09d4ad92feeb1f4b5a3 (patch)
tree6a2640965bbd6b7a081c9aff2cecdd3c63309c5a /libavfilter
parent4e3c4dfbf31243c6abda282439ebd5d16199b4ff (diff)
downloadffmpeg-f7d7ce4717a1331b17d3b09d4ad92feeb1f4b5a3.tar.gz
avfilter/af_acrossover: add missing inverter as last step
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_acrossover.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c
index f4b45d4b60..11785e017d 100644
--- a/libavfilter/af_acrossover.c
+++ b/libavfilter/af_acrossover.c
@@ -315,6 +315,15 @@ static int filter_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_jo
biquad_process(lp, dst, lsrc, nb_samples);
}
}
+
+ for (int band = 0; band < ctx->nb_outputs && s->filter_count & 1; band++) {
+ if (band & 1) {
+ double *dst = (double *)frames[band]->extended_data[ch];
+
+ for (int n = 0; n < nb_samples; n++)
+ dst[n] *= -1.;
+ }
+ }
}
return 0;