Browse Source

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>
tags/n3.0
Ganesh Ajjanagadde 10 years ago
parent
commit
0fe5dcd660
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/avf_showvolume.c

+ 1
- 1
libavfilter/avf_showvolume.c View File

@@ -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);



Loading…
Cancel
Save