diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-23 10:20:15 -0800 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-25 10:48:18 -0800 |
commit | b0e28da37cca0fbe7d03aece48776cb35c86214b (patch) | |
tree | 4d4860f083b9243cc4a9ae763db733e5c9e09a54 | |
parent | cb3a994bb148ea4859d11a20b12b2b94cbdc2bee (diff) | |
download | ffmpeg-b0e28da37cca0fbe7d03aece48776cb35c86214b.tar.gz |
lavc/cngdec: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rw-r--r-- | libavcodec/cngdec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/cngdec.c b/libavcodec/cngdec.c index c0295cd77f..0251086042 100644 --- a/libavcodec/cngdec.c +++ b/libavcodec/cngdec.c @@ -22,6 +22,7 @@ #include <math.h> #include "libavutil/common.h" +#include "libavutil/internal.h" #include "avcodec.h" #include "celp_filters.h" #include "internal.h" @@ -112,7 +113,7 @@ static int cng_decode_frame(AVCodecContext *avctx, void *data, if (avpkt->size) { int dbov = -avpkt->data[0]; - p->target_energy = 1081109975 * pow(10, dbov / 10.0) * 0.75; + p->target_energy = 1081109975 * ff_exp10(dbov / 10.0) * 0.75; memset(p->target_refl_coef, 0, p->order * sizeof(*p->target_refl_coef)); for (i = 0; i < FFMIN(avpkt->size - 1, p->order); i++) { p->target_refl_coef[i] = (avpkt->data[1 + i] - 127) / 128.0; |