History

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

Limin Wang committed 5 years ago

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

Unified · Split

libavfilter/af_replaygain.c+2−2
@@ -428,7 +428,7 @@ static void butter_filter_stereo_samples(ReplayGainContext *s, · 427 unmodified lines
428 // (slowing us down).428 // (slowing us down).
429 429
430 for (j = -4; j < 0; ++j)430 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)
432 break;432 break;
433 433
434 if (!j) {434 if (!j) {
@@ -477,7 +477,7 @@ static void yule_filter_stereo_samples(ReplayGainContext *s, const float *src, · 42 unmodified lines
477 // (slowing us down).477 // (slowing us down).
478 478
479 for (j = -20; j < 0; ++j)479 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)
481 break;481 break;
482 482
483 if (!j) {483 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