# HG changeset patch # User alexc # Date 1278970570 0 # Node ID 8a50de6cf3f1de101c22003e770cedab7023f625 # Parent 862dd5062000764f2bf7ebab8f32633f25b6a500 aacdec: Eliminate the use of doubles in decode_cce(). diff -r 862dd5062000 -r 8a50de6cf3f1 aacdec.c --- 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;