diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-10 22:32:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-10 22:32:56 +0200 |
commit | c5f0b6bf410ca9921cf61627ed1cba38d09b0725 (patch) | |
tree | 375cc53d6f2a3ef4f28f9091b8f370e62e0704e8 /libavcodec/atrac3.c | |
parent | 14de55784dcf0b875dab35896c9e55d5792c6fd4 (diff) | |
download | ffmpeg-streaming-c5f0b6bf410ca9921cf61627ed1cba38d09b0725.zip ffmpeg-streaming-c5f0b6bf410ca9921cf61627ed1cba38d09b0725.tar.gz |
atrac3: replace powf(2,...) by exp2f()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/atrac3.c')
-rw-r--r-- | libavcodec/atrac3.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c index 0912043..7d076be 100644 --- a/libavcodec/atrac3.c +++ b/libavcodec/atrac3.c @@ -37,6 +37,7 @@ #include <stdio.h> #include "libavutil/float_dsp.h" +#include "libavutil/libm.h" #include "avcodec.h" #include "get_bits.h" #include "bytestream.h" @@ -1020,10 +1021,10 @@ static av_cold int atrac3_decode_init(AVCodecContext *avctx) /* Generate gain tables. */ for (i=0 ; i<16 ; i++) - gain_tab1[i] = powf (2.0, (4 - i)); + gain_tab1[i] = exp2f (4 - i); for (i=-15 ; i<16 ; i++) - gain_tab2[i+15] = powf (2.0, i * -0.125); + gain_tab2[i+15] = exp2f (i * -0.125); /* init the joint-stereo decoding data */ q->weighting_delay[0] = 0; |