exp10, recently introduced, is superior for the purpose. Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com> --- 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..6c4528a 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 = 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); -- 2.6.4 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel