[FFmpeg-cvslog] lavfi/af_compand: replace pow(10, x) by ff_exp10(x)
Ganesh Ajjanagadde
git at videolan.org
Fri Dec 25 19:50:19 CET 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Dec 23 10:06:57 2015 -0800| [421679dbf799c8f70332b62434c86f7da27ec181] | committer: Ganesh Ajjanagadde
lavfi/af_compand: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=421679dbf799c8f70332b62434c86f7da27ec181
---
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 68b1fae..b746364 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;
More information about the ffmpeg-cvslog
mailing list