diff --git a/libavcodec/aacenc_utils.h b/libavcodec/aacenc_utils.h index c2a2c2ec68..b9bd6bf449 100644 --- a/libavcodec/aacenc_utils.h +++ b/libavcodec/aacenc_utils.h @@ -66,10 +66,9 @@ static inline void quantize_bands(int *out, const float *in, const float *scaled const float rounding) { int i; - double qc; for (i = 0; i < size; i++) { - qc = scaled[i] * Q34; - out[i] = (int)FFMIN(qc + rounding, (double)maxval); + float qc = scaled[i] * Q34; + out[i] = (int)FFMIN(qc + rounding, (float)maxval); if (is_signed && in[i] < 0.0f) { out[i] = -out[i]; }