History

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

Limin Wang committed 5 years ago

Commit 32531331 parent 44fe5721 file · +2 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_replaygain.c+2−2
@@ -428,7 +428,7 @@ static void butter_filter_stereo_samples(ReplayGainContext *s, · 427 unmodified lines
428428 // (slowing us down).
429429
430430 for (j = -4; j < 0; ++j)
431− if (fabs(hist_a[i + j]) > 1e-10 || fabs(hist_b[i + j]) > 1e-10)
431+ if (fabsf(hist_a[i + j]) > 1e-10f || fabsf(hist_b[i + j]) > 1e-10f)
432432 break;
433433
434434 if (!j) {
@@ -477,7 +477,7 @@ static void yule_filter_stereo_samples(ReplayGainContext *s, const float *src, · 42 unmodified lines
477477 // (slowing us down).
478478
479479 for (j = -20; j < 0; ++j)
480− if (fabs(hist_a[i + j]) > 1e-10 || fabs(hist_b[i + j]) > 1e-10)
480+ if (fabsf(hist_a[i + j]) > 1e-10f || fabsf(hist_b[i + j]) > 1e-10f)
481481 break;
482482
483483 if (!j) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t