OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bd9aa4
)
aacenc: Replace cbrt() with cbrtf() when the result is destined for float
author
Alex Converse
<alex.converse@gmail.com>
Mon, 21 Sep 2009 03:53:39 +0000
(
03:53
+0000)
committer
Alex Converse
<alex.converse@gmail.com>
Mon, 21 Sep 2009 03:53:39 +0000
(
03:53
+0000)
storage.
Originally committed as revision 19946 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/aaccoder.c
patch
|
blob
|
history
diff --git
a/libavcodec/aaccoder.c
b/libavcodec/aaccoder.c
index
e5a7a8e
..
b4c1e8e
100644
(file)
--- a/
libavcodec/aaccoder.c
+++ b/
libavcodec/aaccoder.c
@@
-184,7
+184,7
@@
static float quantize_band_cost(struct AACEncContext *s, const float *in,
curbits += 21;
} else {
int c = av_clip(quant(t, Q), 0, 8191);
- di = t - c*cbrt(c)*IQ;
+ di = t - c*cbrt
f
(c)*IQ;
curbits += av_log2(c)*2 - 4 + 1;
}
} else {
@@
-299,7
+299,7
@@
static void quantize_and_encode_band(struct AACEncContext *s, PutBitContext *pb,
curbits += 21;
} else {
int c = av_clip(quant(t, Q), 0, 8191);
- di = t - c*cbrt(c)*IQ;
+ di = t - c*cbrt
f
(c)*IQ;
curbits += av_log2(c)*2 - 4 + 1;
}
} else {