summaryrefslogtreecommitdiff
path: root/libavfilter/af_compand.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-23 10:06:57 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-25 10:48:18 -0800
commit421679dbf799c8f70332b62434c86f7da27ec181 (patch)
treefd28be3b99b94f961d2962b7de33ceda80231d85 /libavfilter/af_compand.c
parent6c360ca8a1d8b2d4b29de9af047575ec224867c7 (diff)
lavfi/af_compand: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/af_compand.c')
-rw-r--r--libavfilter/af_compand.c2
1 files changed, 1 insertions, 1 deletions
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;