Commit 6c360ca8 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavfi/af_volume: replace pow(10,x) by ff_exp10(x)

Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent e0024b9e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment