From c49307e7847f1c65d8f807c7edbec4cddee2f37f Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 21 Dec 2018 11:53:44 +0100 Subject: [PATCH] avfilter/af_sofalizer: use fabsf() instead of fabs() --- libavfilter/af_sofalizer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c index 94e8c8a53e..6b189cffea 100644 --- a/libavfilter/af_sofalizer.c +++ b/libavfilter/af_sofalizer.c @@ -351,8 +351,8 @@ static int sofalizer_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n } /* clippings counter */ - if (fabs(dst[0]) > 1) - *n_clippings += 1; + if (fabsf(dst[0]) > 1) + n_clippings[0]++; /* move output buffer pointer by +2 to get to next sample of processed channel: */ dst += 2; @@ -469,7 +469,7 @@ static int sofalizer_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr, /* go through all samples of current output buffer: count clippings */ for (i = 0; i < out->nb_samples; i++) { /* clippings counter */ - if (fabs(*dst) > 1) { /* if current output sample > 1 */ + if (fabsf(dst[0]) > 1) { /* if current output sample > 1 */ n_clippings[0]++; }