aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-23 10:38:39 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-25 10:48:18 -0800
commit25ae086db2c1203d447dc4ab866839d56390f9eb (patch)
tree193b0ac47195d9e9061e20097a2af4e71c0e929e
parent3343e4e6078cf25aee3c9b579c1855bba2e6781e (diff)
downloadffmpeg-25ae086db2c1203d447dc4ab866839d56390f9eb.tar.gz
lavc/wmaprodec: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rw-r--r--libavcodec/wmaprodec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/wmaprodec.c b/libavcodec/wmaprodec.c
index f8f901c224..c150eaf381 100644
--- a/libavcodec/wmaprodec.c
+++ b/libavcodec/wmaprodec.c
@@ -89,6 +89,7 @@
#include <inttypes.h>
#include "libavutil/float_dsp.h"
+#include "libavutil/internal.h"
#include "libavutil/intfloat.h"
#include "libavutil/intreadwrite.h"
#include "avcodec.h"
@@ -1350,7 +1351,7 @@ static int decode_subframe(WMAProDecodeCtx *s)
const int exp = s->channel[c].quant_step -
(s->channel[c].max_scale_factor - *sf++) *
s->channel[c].scale_factor_step;
- const float quant = pow(10.0, exp / 20.0);
+ const float quant = ff_exp10(exp / 20.0);
int start = s->cur_sfb_offsets[b];
s->fdsp->vector_fmul_scalar(s->tmp + start,
s->channel[c].coeffs + start,