[FFmpeg-cvslog] lavc/nellymoserdec: replace pow by exp2

Ganesh Ajjanagadde git at videolan.org
Fri Dec 11 16:37:09 CET 2015


ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Dec  9 19:00:22 2015 -0500| [a0ddebfedf469282e2ea5e42c28e6a991afaf088] | committer: Ganesh Ajjanagadde

lavc/nellymoserdec: replace pow by exp2

exp2 suffices here.

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0ddebfedf469282e2ea5e42c28e6a991afaf088
---

 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;



More information about the ffmpeg-cvslog mailing list