From 421679dbf799c8f70332b62434c86f7da27ec181 Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Wed, 23 Dec 2015 10:06:57 -0800 Subject: lavfi/af_compand: replace pow(10,x) by ff_exp10(x) Signed-off-by: Ganesh Ajjanagadde --- libavfilter/af_compand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index 68b1fae81e..b74636409c 100644 --- a/libavfilter/af_compand.c +++ b/libavfilter/af_compand.c @@ -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; -- cgit v1.2.3