summaryrefslogtreecommitdiff
path: root/libavfilter/af_sofalizer.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-12-21 11:53:44 +0100
committerPaul B Mahol <onemda@gmail.com>2018-12-21 11:53:44 +0100
commitc49307e7847f1c65d8f807c7edbec4cddee2f37f (patch)
treeb83256b6fc356ed8b703c073554891ba82af90f7 /libavfilter/af_sofalizer.c
parent555f332e7adbd492ca74fa7329c492819b52e2ed (diff)
downloadffmpeg-c49307e7847f1c65d8f807c7edbec4cddee2f37f.tar.gz
avfilter/af_sofalizer: use fabsf() instead of fabs()
Diffstat (limited to 'libavfilter/af_sofalizer.c')
-rw-r--r--libavfilter/af_sofalizer.c6
1 files 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]++;
}