lavfi/af_compand: replace pow(10,x) by ff_exp10(x)
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Wed, 23 Dec 2015 18:06:57 +0000 (10:06 -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>
libavfilter/af_compand.c

index 68b1fae..b746364 100644 (file)
@@ -506,7 +506,7 @@ static int config_output(AVFilterLink *outlink)
             cp->decay = 1.0 - exp(-1.0 / (sample_rate * cp->decay));
         else
             cp->decay = 1.0;
-        cp->volume = pow(10.0, s->initial_volume / 20);
+        cp->volume = ff_exp10(s->initial_volume / 20);
     }
 
     s->delay_samples = s->delay * sample_rate;