1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

This commit is contained in:
Paul B Mahol 2018-12-21 11:53:44 +01:00
parent 555f332e7a
commit c49307e784

View File

@ -351,8 +351,8 @@ static int sofalizer_convolute(AVFilterContext *ctx, void *arg, int jobnr, int n
}
/* clippings counter */
if (fabs(dst[0]) > 1)
*n_clippings += 1;
if (fabsf(dst[0]) > 1)
n_clippings[0]++;
/* move output buffer pointer by +2 to get to next sample of processed channel: */
dst += 2;
@ -469,7 +469,7 @@ static int sofalizer_fast_convolute(AVFilterContext *ctx, void *arg, int jobnr,
/* go through all samples of current output buffer: count clippings */
for (i = 0; i < out->nb_samples; i++) {
/* clippings counter */
if (fabs(*dst) > 1) { /* if current output sample > 1 */
if (fabsf(dst[0]) > 1) { /* if current output sample > 1 */
n_clippings[0]++;
}