diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 917e7b6264..7fbde60681 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -1541,7 +1541,7 @@ static int read_diff_float_data(ALSDecContext *ctx, unsigned int ra_frame) { if (ctx->raw_samples[c][i] != 0) { //The following logic is taken from Tabel 14.45 and 14.46 from the ISO spec if (av_cmp_sf_ieee754(acf[c], FLOAT_1)) { - nbits[i] = 23 - av_log2(abs(ctx->raw_samples[c][i])); + nbits[i] = 23 - av_log2(FFABSU(ctx->raw_samples[c][i])); } else { nbits[i] = 23; }