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

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2021-10-13 20:23:06 +08:00
parent 44fe572371
commit 3253133382
1 changed files with 2 additions and 2 deletions

View File

@ -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) {