diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 00:11:44 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 18:46:00 -0400 |
commit | 4d0d85c94ad9fe943e12b8db5fe4ed9df170c12c (patch) | |
tree | 433a432ae67a293f74fd480591715986b8c0a854 /libavfilter | |
parent | 603d62745710220f9ecd97f4d0cc6831394ebcd3 (diff) | |
download | ffmpeg-streaming-4d0d85c94ad9fe943e12b8db5fe4ed9df170c12c.zip ffmpeg-streaming-4d0d85c94ad9fe943e12b8db5fe4ed9df170c12c.tar.gz |
avfilter/af_volume: use log10 instead of log()/M_LN10
This is likely more precise and conveys the intent better.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_volume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index 16e994c..3ba356a 100644 --- a/libavfilter/af_volume.c +++ b/libavfilter/af_volume.c @@ -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; |