Commit 3b336ec2 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Paul B Mahol

avfilter/af_sidechaincompress: replace FFABS with fabs

parent ac6b7c47
...@@ -154,14 +154,14 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame) ...@@ -154,14 +154,14 @@ static int filter_frame(AVFilterLink *link, AVFrame *frame)
for (i = 0; i < nb_samples; i++) { for (i = 0; i < nb_samples; i++) {
double abs_sample, gain = 1.0; double abs_sample, gain = 1.0;
abs_sample = FFABS(scsrc[0]); abs_sample = fabs(scsrc[0]);
if (s->link == 1) { if (s->link == 1) {
for (c = 1; c < sclink->channels; c++) for (c = 1; c < sclink->channels; c++)
abs_sample = FFMAX(FFABS(scsrc[c]), abs_sample); abs_sample = FFMAX(fabs(scsrc[c]), abs_sample);
} else { } else {
for (c = 1; c < sclink->channels; c++) for (c = 1; c < sclink->channels; c++)
abs_sample += FFABS(scsrc[c]); abs_sample += fabs(scsrc[c]);
abs_sample /= sclink->channels; abs_sample /= sclink->channels;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment