Commit 50e39b1f authored by alexc's avatar alexc

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

storage.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19946 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d1173efa
...@@ -184,7 +184,7 @@ static float quantize_band_cost(struct AACEncContext *s, const float *in, ...@@ -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, ...@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment