aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_replaygain.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-10-13 20:23:06 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-10-20 22:47:36 +0800
commit32531333824a76524987c481daba43ffffa43ef0 (patch)
tree9251c31de8b9a28eb187bb992da2e0c3971822e0 /libavfilter/af_replaygain.c
parent44fe572371f9f00786069b3d4698611e9a34d7ee (diff)
downloadffmpeg-32531333824a76524987c481daba43ffffa43ef0.tar.gz
avfilter/af_replaygain: use fabsf() instead of fabs()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavfilter/af_replaygain.c')
-rw-r--r--libavfilter/af_replaygain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_replaygain.c b/libavfilter/af_replaygain.c
index 4bf2763bcf..ee0312da82 100644
--- a/libavfilter/af_replaygain.c
+++ b/libavfilter/af_replaygain.c
@@ -428,7 +428,7 @@ static void butter_filter_stereo_samples(ReplayGainContext *s,
// (slowing us down).
for (j = -4; j < 0; ++j)
- if (fabs(hist_a[i + j]) > 1e-10 || fabs(hist_b[i + j]) > 1e-10)
+ if (fabsf(hist_a[i + j]) > 1e-10f || fabsf(hist_b[i + j]) > 1e-10f)
break;
if (!j) {
@@ -477,7 +477,7 @@ static void yule_filter_stereo_samples(ReplayGainContext *s, const float *src,
// (slowing us down).
for (j = -20; j < 0; ++j)
- if (fabs(hist_a[i + j]) > 1e-10 || fabs(hist_b[i + j]) > 1e-10)
+ if (fabsf(hist_a[i + j]) > 1e-10f || fabsf(hist_b[i + j]) > 1e-10f)
break;
if (!j) {