aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-23 10:26:37 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-25 10:48:18 -0800
commit26ac80d23540bc89679448473be583bdc0c91fde (patch)
tree14d784e1ff7e5ccb6242bf151c38b72c1ccd3433
parent717eeb77e1d9e1e9d27c31d849afa271d07d50f4 (diff)
downloadffmpeg-26ac80d23540bc89679448473be583bdc0c91fde.tar.gz
lavc/imc: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rw-r--r--libavcodec/imc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index 14f9fa30a5..f7eff63fac 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -137,8 +137,8 @@ static av_cold void iac_generate_tabs(IMCContext *q, int sampling_rate)
if (i > 0) {
tb = bark - prev_bark;
- q->weights1[i - 1] = pow(10.0, -1.0 * tb);
- q->weights2[i - 1] = pow(10.0, -2.7 * tb);
+ q->weights1[i - 1] = ff_exp10(-1.0 * tb);
+ q->weights2[i - 1] = ff_exp10(-2.7 * tb);
}
prev_bark = bark;