lavc/imc: replace pow(10,x) by ff_exp10(x)
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 23 Dec 2015 18:26:37 +0000 (10:26 -0800)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 25 Dec 2015 18:48:18 +0000 (10:48 -0800)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/imc.c

index 14f9fa3..f7eff63 100644 (file)
@@ -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;