avfilter/avf_showspectrum: finally fix log scaler

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2016-01-03 22:43:21 +01:00
parent 14caf9667e
commit 0a451082c7
1 changed files with 1 additions and 1 deletions

View File

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