diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-29 07:14:39 +0300 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-10-30 01:55:10 +0300 |
commit | ec66bcc0e75ca839e82f3c87ebfa7cd90bc1c089 (patch) | |
tree | 658b4499f9a58d57a762f47dc6057f48e89a485b /libavfilter/avf_showspectrum.c | |
parent | 59d37f5a4e7014ee0e44af051f092fff9917399b (diff) |
avfilter/avf_showspectrum: use log10 instead of log()/...
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/avf_showspectrum.c')
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 936db605a6..7d5c4380c6 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -386,7 +386,7 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples) a = cbrt(a); break; case LOG: - a = 1 - log(FFMAX(FFMIN(1, a), 1e-6)) / log(1e-6); // zero = -120dBFS + a = 1 + log10(FFMAX(FFMIN(1, a), 1e-6)) / 6; // zero = -120dBFS break; default: av_assert0(0); |