diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-09 19:00:22 -0500 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-11 10:21:47 -0500 |
commit | a0ddebfedf469282e2ea5e42c28e6a991afaf088 (patch) | |
tree | 94fc8b96562546c5c70a70daae578965b8016c6e /libavcodec/nellymoserdec.c | |
parent | 93afb338a405eac0f9e7b092bc26603378bfcca6 (diff) | |
download | ffmpeg-a0ddebfedf469282e2ea5e42c28e6a991afaf088.tar.gz |
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; |