aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_volume.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-23 10:05:34 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-25 10:48:18 -0800
commit6c360ca8a1d8b2d4b29de9af047575ec224867c7 (patch)
tree5572635a316643656ad3fa0592f4911760e69d2c /libavfilter/af_volume.c
parente0024b9e5f5b174c542c90bc3006d36854d14af6 (diff)
downloadffmpeg-6c360ca8a1d8b2d4b29de9af047575ec224867c7.tar.gz
lavfi/af_volume: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/af_volume.c')
-rw-r--r--libavfilter/af_volume.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
index 3ba356ac84..3913e7b261 100644
--- a/libavfilter/af_volume.c
+++ b/libavfilter/af_volume.c
@@ -376,7 +376,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
av_log(inlink->dst, AV_LOG_VERBOSE,
"Using gain %f dB from replaygain side data.\n", g);
- vol->volume = pow(10, (g + vol->replaygain_preamp) / 20);
+ vol->volume = ff_exp10((g + vol->replaygain_preamp) / 20);
if (vol->replaygain_noclip)
vol->volume = FFMIN(vol->volume, 1.0 / p);
vol->volume_i = (int)(vol->volume * 256 + 0.5);