From 3b336ec2fbd4b9e16144d3247428009c6fb301f0 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Tue, 13 Oct 2015 09:37:18 +0200 Subject: [PATCH] avfilter/af_sidechaincompress: replace FFABS with fabs --- libavfilter/af_sidechaincompress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/af_sidechaincompress.c b/libavfilter/af_sidechaincompress.c index b8a81fc0bb..f2157edbb0 100644 --- a/libavfilter/af_sidechaincompress.c +++ b/libavfilter/af_sidechaincompress.c @@ -154,14 +154,14 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) for (i = 0; i < nb_samples; i++) { double abs_sample, gain = 1.0; - abs_sample = FFABS(scsrc[0]); + abs_sample = fabs(scsrc[0]); if (s->link == 1) { for (c = 1; c < sclink->channels; c++) - abs_sample = FFMAX(FFABS(scsrc[c]), abs_sample); + abs_sample = FFMAX(fabs(scsrc[c]), abs_sample); } else { for (c = 1; c < sclink->channels; c++) - abs_sample += FFABS(scsrc[c]); + abs_sample += fabs(scsrc[c]); abs_sample /= sclink->channels; }