Mercurial > libavcodec.hg
changeset 12154:8a50de6cf3f1 libavcodec
aacdec: Eliminate the use of doubles in decode_cce().
author | alexc |
---|---|
date | Mon, 12 Jul 2010 21:36:10 +0000 |
parents | 862dd5062000 |
children | 7f8b11d9c831 |
files | aacdec.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/aacdec.c Mon Jul 12 21:35:43 2010 +0000 +++ b/aacdec.c Mon Jul 12 21:36:10 2010 +0000 @@ -1504,7 +1504,7 @@ 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 @@ s -= 2 * (t & 0x1); t >>= 1; } - gain_cache = pow(scale, -t) * s; + gain_cache = powf(scale, -t) * s; } } coup->gain[c][idx] = gain_cache;