]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/f_ebur128: use correct type for chl
authorPaul B Mahol <onemda@gmail.com>
Mon, 29 Apr 2019 14:46:42 +0000 (16:46 +0200)
committerPaul B Mahol <onemda@gmail.com>
Mon, 29 Apr 2019 14:46:42 +0000 (16:46 +0200)
libavfilter/f_ebur128.c

index f613d8def23f963e89fb13ddf5a3b3a9debb5649..f25d5f096e50de42a066d84e45ec9c1008ef1c1a 100644 (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) {