diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-12-21 12:06:03 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-12-21 12:06:03 +0100 |
commit | 47ba0854720e05d46a1fdd5b0550e47b9148c816 (patch) | |
tree | 6eaa8faf8002aa1e939c141271fd504dae8a2b10 /libavfilter/af_headphone.c | |
parent | c49307e7847f1c65d8f807c7edbec4cddee2f37f (diff) | |
download | ffmpeg-47ba0854720e05d46a1fdd5b0550e47b9148c816.tar.gz |
avfilter/af_headphone: use fabsf() instead of fabs()
Diffstat (limited to 'libavfilter/af_headphone.c')
-rw-r--r-- | libavfilter/af_headphone.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_headphone.c b/libavfilter/af_headphone.c index 43e7747d86..da4ff0598f 100644 --- a/libavfilter/af_headphone.c +++ b/libavfilter/af_headphone.c @@ -219,8 +219,8 @@ static int headphone_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n temp_ir += FFALIGN(ir_len, 16); } - if (fabs(*dst) > 1) - *n_clippings += 1; + if (fabsf(dst[0]) > 1) + n_clippings[0]++; dst += 2; src += in_channels; @@ -314,7 +314,7 @@ static int headphone_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr, } for (i = 0; i < out->nb_samples; i++) { - if (fabs(*dst) > 1) { + if (fabsf(dst[0]) > 1) { n_clippings[0]++; } |