Commit 47ba0854 authored by Paul B Mahol's avatar Paul B Mahol

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

parent c49307e7
...@@ -219,8 +219,8 @@ static int headphone_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n ...@@ -219,8 +219,8 @@ static int headphone_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n
temp_ir += FFALIGN(ir_len, 16); temp_ir += FFALIGN(ir_len, 16);
} }
if (fabs(*dst) > 1) if (fabsf(dst[0]) > 1)
*n_clippings += 1; n_clippings[0]++;
dst += 2; dst += 2;
src += in_channels; src += in_channels;
...@@ -314,7 +314,7 @@ static int headphone_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr, ...@@ -314,7 +314,7 @@ static int headphone_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr,
} }
for (i = 0; i < out->nb_samples; i++) { for (i = 0; i < out->nb_samples; i++) {
if (fabs(*dst) > 1) { if (fabsf(dst[0]) > 1) {
n_clippings[0]++; n_clippings[0]++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment