1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/f_ebur128: use correct type for chl

This commit is contained in:
Paul B Mahol 2019-04-29 16:46:42 +02:00
parent d7fead80ad
commit 31990046ac

View File

@ -420,7 +420,7 @@ static int config_audio_output(AVFilterLink *outlink)
for (i = 0; i < nb_channels; i++) {
/* channel weighting */
const uint16_t chl = av_channel_layout_extract_channel(outlink->channel_layout, i);
const uint64_t chl = av_channel_layout_extract_channel(outlink->channel_layout, i);
if (chl & (AV_CH_LOW_FREQUENCY|AV_CH_LOW_FREQUENCY_2)) {
ebur128->ch_weighting[i] = 0;
} else if (chl & BACK_MASK) {