diff options
author | Alex Converse <alex.converse@gmail.com> | 2010-07-12 21:36:10 +0000 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2010-07-12 21:36:10 +0000 |
commit | 531cfe6e851ce5d8ea034bef061253d4debbfa16 (patch) | |
tree | 0b7798a2ac61ad98db6751e567de8d46da55de2e /libavcodec/aacdec.c | |
parent | 93c6ff6c8c2ea39d6b4173efc9732010c51d0703 (diff) | |
download | ffmpeg-531cfe6e851ce5d8ea034bef061253d4debbfa16.tar.gz |
aacdec: Eliminate the use of doubles in decode_cce().
Originally committed as revision 24225 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/aacdec.c')
-rw-r--r-- | libavcodec/aacdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacdec.c b/libavcodec/aacdec.c index 9214c18b91..3159196048 100644 --- a/libavcodec/aacdec.c +++ b/libavcodec/aacdec.c @@ -1504,7 +1504,7 @@ static int decode_cce(AACContext *ac, GetBitContext *gb, ChannelElement *che) if (c) { cge = coup->coupling_point == AFTER_IMDCT ? 1 : get_bits1(gb); gain = cge ? get_vlc2(gb, vlc_scalefactors.table, 7, 3) - 60: 0; - gain_cache = pow(scale, -gain); + gain_cache = powf(scale, -gain); } if (coup->coupling_point == AFTER_IMDCT) { coup->gain[c][0] = gain_cache; @@ -1521,7 +1521,7 @@ static int decode_cce(AACContext *ac, GetBitContext *gb, ChannelElement *che) s -= 2 * (t & 0x1); t >>= 1; } - gain_cache = pow(scale, -t) * s; + gain_cache = powf(scale, -t) * s; } } coup->gain[c][idx] = gain_cache; |