History

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

Alex Converse committed 17 years ago

Commit 9d4f6f11 parent 0bd9aa41 file · +2 −2Browse files

Showing the changes to libavcodec/aaccoder.c (1 of 1 file). Show all

Unified · Split

libavcodec/aaccoder.c+2−2
@@ -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 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t