diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-01-04 00:43:21 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-01-04 01:09:43 +0300 |
commit | 0a451082c774540f8d47642d2078fcf2c822ebc1 (patch) | |
tree | 1cee87ce5003d5f5db8a1d53c9608b6cb7e96c73 /libavfilter/avf_showspectrum.c | |
parent | 14caf9667e3f588d6497b68f3c0ab3b6592d328b (diff) |
avfilter/avf_showspectrum: finally fix log scaler
Signed-off-by: Paul B Mahol <onemda@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 6e73b9e55a..48d811e2c4 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -581,7 +581,7 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples) a = pow(a, 0.20); break; case LOG: - a = 1 + log10(FFMAX(FFMIN(1, a), 1e-6)) / 5; // zero = -120dBFS + a = 1 + log10(FFMAX(FFMIN(1, a * w), 1e-6)) / 6; // zero = -120dBFS break; default: av_assert0(0); |