diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-10 03:00:22 +0300 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-11 18:21:47 +0300 |
commit | a0ddebfedf469282e2ea5e42c28e6a991afaf088 (patch) | |
tree | 94fc8b96562546c5c70a70daae578965b8016c6e /libavcodec/nellymoserdec.c | |
parent | 93afb338a405eac0f9e7b092bc26603378bfcca6 (diff) |
lavc/nellymoserdec: replace pow by exp2
exp2 suffices here.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/nellymoserdec.c')
-rw-r--r-- | libavcodec/nellymoserdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c index 5f18593c9c..e6625cb98c 100644 --- a/libavcodec/nellymoserdec.c +++ b/libavcodec/nellymoserdec.c @@ -75,7 +75,7 @@ static void nelly_decode_block(NellyMoserDecodeContext *s, for (i=0 ; i<NELLY_BANDS ; i++) { if (i > 0) 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++) { *bptr++ = val; *pptr++ = pval; |