提交 5083900b 编写于 作者: C Clément Bœsch

lavfi/ebur128: apply I dual mono correction only if I available

Spotted-by: jamrial & gcc 6
上级 f69f050a
......@@ -663,12 +663,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
nb_integrated += nb_v;
integrated_sum += nb_v * ebur128->i400.histogram[i].energy;
}
if (nb_integrated)
if (nb_integrated) {
ebur128->integrated_loudness = LOUDNESS(integrated_sum / nb_integrated);
/* dual-mono correction */
if (nb_channels == 1 && ebur128->dual_mono) {
ebur128->integrated_loudness -= ebur128->pan_law;
}
}
}
/* LRA */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册