diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 00:15:25 -0400 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 19:10:49 -0400 |
commit | 0fe5dcd66041183c2ada3847b968c425f104b0c5 (patch) | |
tree | b1b6dd35327b338ac89028f29b9149ca1e179a4c /libavfilter/avf_showvolume.c | |
parent | b45daad2aa34d17e225e6449fd8cdaeba02ec2be (diff) | |
download | ffmpeg-0fe5dcd66041183c2ada3847b968c425f104b0c5.tar.gz |
avfilter/avf_showvolume: use log10 instead of log()/M_LN10
This is likely more precise and conveys the intent better.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/avf_showvolume.c')
-rw-r--r-- | libavfilter/avf_showvolume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showvolume.c b/libavfilter/avf_showvolume.c index 95b5388912..395375a40f 100644 --- a/libavfilter/avf_showvolume.c +++ b/libavfilter/avf_showvolume.c @@ -197,7 +197,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) max = FFMAX(max, src[i]); max = av_clipf(max, 0, 1); - values[VAR_VOLUME] = 20.0 * log(max) / M_LN10; + values[VAR_VOLUME] = 20.0 * log10(max); values[VAR_CHANNEL] = c; color = av_expr_eval(s->c_expr, values, NULL); |