[FFmpeg-cvslog] lavfi/af_volume: 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:05:34 2015 -0800| [6c360ca8a1d8b2d4b29de9af047575ec224867c7] | committer: Ganesh Ajjanagadde
lavfi/af_volume: 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=6c360ca8a1d8b2d4b29de9af047575ec224867c7
---
libavfilter/af_volume.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
index 3ba356a..3913e7b 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);
More information about the ffmpeg-cvslog
mailing list