[FFmpeg-devel] [PATCH] avcodec/nellymoserdec: replace pow by exp2
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Thu Dec 10 01:02:02 CET 2015
exp2 suffices here.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
---
libavcodec/nellymoserdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/nellymoserdec.c b/libavcodec/nellymoserdec.c
index 5f18593..e6625cb 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;
--
2.6.3
More information about the ffmpeg-devel
mailing list