]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_volume.c
lavfi/af_sofalizer: remove exp2 and replace clz by ff_clz
[ffmpeg] / libavfilter / af_volume.c
index 3ba356ac8466146b8e80a956cab711406a9107bf..3913e7b261a82c508a501c9f5eca372d39ed14b8 100644 (file)
@@ -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);