1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

aacenc: Replace cbrt() with cbrtf() when the result is destined for float

storage.

Originally committed as revision 19946 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Converse 2009-09-21 03:53:39 +00:00
parent 0bd9aa449a
commit 9d4f6f10ae

View File

@ -184,7 +184,7 @@ static float quantize_band_cost(struct AACEncContext *s, const float *in,
curbits += 21; curbits += 21;
} else { } else {
int c = av_clip(quant(t, Q), 0, 8191); int c = av_clip(quant(t, Q), 0, 8191);
di = t - c*cbrt(c)*IQ; di = t - c*cbrtf(c)*IQ;
curbits += av_log2(c)*2 - 4 + 1; curbits += av_log2(c)*2 - 4 + 1;
} }
} else { } else {
@ -299,7 +299,7 @@ static void quantize_and_encode_band(struct AACEncContext *s, PutBitContext *pb,
curbits += 21; curbits += 21;
} else { } else {
int c = av_clip(quant(t, Q), 0, 8191); int c = av_clip(quant(t, Q), 0, 8191);
di = t - c*cbrt(c)*IQ; di = t - c*cbrtf(c)*IQ;
curbits += av_log2(c)*2 - 4 + 1; curbits += av_log2(c)*2 - 4 + 1;
} }
} else { } else {