Commit 4d0d85c9 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

avfilter/af_volume: use log10 instead of log()/M_LN10

This is likely more precise and conveys the intent better.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 603d6274
......@@ -279,7 +279,7 @@ static int set_volume(AVFilterContext *ctx)
av_log(ctx, AV_LOG_VERBOSE, "volume_i:%d/255 ", vol->volume_i);
}
av_log(ctx, AV_LOG_VERBOSE, "volume:%f volume_dB:%f\n",
vol->volume, 20.0*log(vol->volume)/M_LN10);
vol->volume, 20.0*log10(vol->volume));
volume_init(vol);
return 0;
......
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