Commit a0ddebfe authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavc/nellymoserdec: replace pow by exp2

exp2 suffices here.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 93afb338
...@@ -75,7 +75,7 @@ static void nelly_decode_block(NellyMoserDecodeContext *s, ...@@ -75,7 +75,7 @@ static void nelly_decode_block(NellyMoserDecodeContext *s,
for (i=0 ; i<NELLY_BANDS ; i++) { for (i=0 ; i<NELLY_BANDS ; i++) {
if (i > 0) if (i > 0)
val += ff_nelly_delta_table[get_bits(&s->gb, 5)]; val += ff_nelly_delta_table[get_bits(&s->gb, 5)];
pval = -pow(2, val/2048) * s->scale_bias; pval = -exp2(val/2048) * s->scale_bias;
for (j = 0; j < ff_nelly_band_sizes_table[i]; j++) { for (j = 0; j < ff_nelly_band_sizes_table[i]; j++) {
*bptr++ = val; *bptr++ = val;
*pptr++ = pval; *pptr++ = pval;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment