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 | curbits += 21; | 184 | curbits += 21; |
| 185 | } else { | 185 | } else { |
| 186 | int c = av_clip(quant(t, Q), 0, 8191); | 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 | curbits += av_log2(c)*2 - 4 + 1; | 188 | curbits += av_log2(c)*2 - 4 + 1; |
| 189 | } | 189 | } |
| 190 | } else { | 190 | } else { |
| @@ -299,7 +299,7 @@ static void quantize_and_encode_band(struct AACEncContext *s, PutBitContext *pb, · 108 unmodified lines | |||
| 299 | curbits += 21; | 299 | curbits += 21; |
| 300 | } else { | 300 | } else { |
| 301 | int c = av_clip(quant(t, Q), 0, 8191); | 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 | curbits += av_log2(c)*2 - 4 + 1; | 303 | curbits += av_log2(c)*2 - 4 + 1; |
| 304 | } | 304 | } |
| 305 | } else { | 305 | } else { |