lavu/eval: replace pow(10,x) by ff_exp10(x)
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 23 Dec 2015 18:00:13 +0000 (10:00 -0800)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 25 Dec 2015 18:48:13 +0000 (10:48 -0800)
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavutil/eval.c

index dcb8c56..2acbbb4 100644 (file)
@@ -106,7 +106,7 @@ double av_strtod(const char *numstr, char **tail)
     if (next!=numstr) {
         if (next[0] == 'd' && next[1] == 'B') {
             /* treat dB as decibels instead of decibytes */
-            d = pow(10, d / 20);
+            d = ff_exp10(d / 20);
             next += 2;
         } else if (*next >= 'E' && *next <= 'z') {
             int e= si_prefixes[*next - 'E'].exp;