[FFmpeg-cvslog] avfilter/af_sofalizer: use fabsf() instead of fabs()

Paul B Mahol git at videolan.org
Fri Dec 21 13:07:58 EET 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Dec 21 11:53:44 2018 +0100| [c49307e7847f1c65d8f807c7edbec4cddee2f37f] | committer: Paul B Mahol

avfilter/af_sofalizer: use fabsf() instead of fabs()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c49307e7847f1c65d8f807c7edbec4cddee2f37f
---

 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]++;
         }
 



More information about the ffmpeg-cvslog mailing list