Commit e19ec6c5 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Align master audio level with MLT's audiolevel filter (use only the first 200 samples)

parent d1bdc451
......@@ -43,6 +43,8 @@ void MonitorAudioLevel::refreshScope(const QSize & /*size*/, bool /*full*/)
if (samples <= 0) {
continue;
}
// TODO: the 200 value is aligned with the MLT audiolevel filter, but seems arbitrary.
samples = qMin(200, samples);
int channels = sFrame.get_audio_channels();
QVector<double> levels;
const int16_t *audio = sFrame.get_audio();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment