lavc/nellymoserdec: replace pow by exp2
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Thu, 10 Dec 2015 00:00:22 +0000 (19:00 -0500)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 11 Dec 2015 15:21:47 +0000 (10:21 -0500)
exp2 suffices here.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/nellymoserdec.c

index 5f18593..e6625cb 100644 (file)
@@ -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;