提交 25ae086d 编写于 作者: G Ganesh Ajjanagadde

lavc/wmaprodec: replace pow(10,x) by ff_exp10(x)

Signed-off-by: NGanesh Ajjanagadde <gajjanagadde@gmail.com>
上级 3343e4e6
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
#include <inttypes.h> #include <inttypes.h>
#include "libavutil/float_dsp.h" #include "libavutil/float_dsp.h"
#include "libavutil/internal.h"
#include "libavutil/intfloat.h" #include "libavutil/intfloat.h"
#include "libavutil/intreadwrite.h" #include "libavutil/intreadwrite.h"
#include "avcodec.h" #include "avcodec.h"
...@@ -1350,7 +1351,7 @@ static int decode_subframe(WMAProDecodeCtx *s) ...@@ -1350,7 +1351,7 @@ static int decode_subframe(WMAProDecodeCtx *s)
const int exp = s->channel[c].quant_step - const int exp = s->channel[c].quant_step -
(s->channel[c].max_scale_factor - *sf++) * (s->channel[c].max_scale_factor - *sf++) *
s->channel[c].scale_factor_step; 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]; int start = s->cur_sfb_offsets[b];
s->fdsp->vector_fmul_scalar(s->tmp + start, s->fdsp->vector_fmul_scalar(s->tmp + start,
s->channel[c].coeffs + start, s->channel[c].coeffs + start,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册