Originally committed as revision 19946 to svn://svn.ffmpeg.org/ffmpeg/trunk
Showing the changes to libavcodec/aaccoder.c (1 of 1 file). Show all
Unified · Split
| @@ -184,7 +184,7 @@ static float quantize_band_cost(struct AACEncContext *s, const float *in, · 183 unmodified lines | ||
| 184 | 184 | curbits += 21; |
| 185 | 185 | } else { |
| 186 | 186 | int c = av_clip(quant(t, Q), 0, 8191); |
| 187 | − di = t - c*cbrt(c)*IQ; | |
| 187 | + di = t - c*cbrtf(c)*IQ; | |
| 188 | 188 | curbits += av_log2(c)*2 - 4 + 1; |
| 189 | 189 | } |
| 190 | 190 | } else { |
| @@ -299,7 +299,7 @@ static void quantize_and_encode_band(struct AACEncContext *s, PutBitContext *pb, · 108 unmodified lines | ||
| 299 | 299 | curbits += 21; |
| 300 | 300 | } else { |
| 301 | 301 | int c = av_clip(quant(t, Q), 0, 8191); |
| 302 | − di = t - c*cbrt(c)*IQ; | |
| 302 | + di = t - c*cbrtf(c)*IQ; | |
| 303 | 303 | curbits += av_log2(c)*2 - 4 + 1; |
| 304 | 304 | } |
| 305 | 305 | } else { |