libavcodec/mlpdec.c:548: error: Integer Overflow L1
  (0 - 1):unsigned64 by call to `av_get_channel_layout_channel_index`.

libavcodec/mlpdec.c:546:32: Call
544.         int ch_assign = bitstream_read(bc, 6);
545.         if (m->avctx->codec_id == AV_CODEC_ID_TRUEHD) {
546.             uint64_t channel = thd_channel_layout_extract_channel(s->ch_layout,
                                    ^
547.                                                                   ch_assign);
548.             ch_assign = av_get_channel_layout_channel_index(s->ch_layout,

libavcodec/mlpdec.c:187:9: Assignment
  185. 
  186.     if (av_get_channel_layout_nb_channels(channel_layout) <= index)
  187.         return 0;
               ^
  188. 
  189.     for (i = 0; i < FF_ARRAY_ELEMS(thd_channel_order); i++)

libavcodec/mlpdec.c:546:13: Assignment
544.         int ch_assign = bitstream_read(bc, 6);
545.         if (m->avctx->codec_id == AV_CODEC_ID_TRUEHD) {
546.             uint64_t channel = thd_channel_layout_extract_channel(s->ch_layout,
                 ^
547.                                                                   ch_assign);
548.             ch_assign = av_get_channel_layout_channel_index(s->ch_layout,

libavcodec/mlpdec.c:548:25: Call
546.             uint64_t channel = thd_channel_layout_extract_channel(s->ch_layout,
547.                                                                   ch_assign);
548.             ch_assign = av_get_channel_layout_channel_index(s->ch_layout,
                             ^
549.                                                             channel);
550.         }

libavutil/channel_layout.c:202:1: <LHS trace>
200. }
201. 
202. int av_get_channel_layout_channel_index(uint64_t channel_layout,
     ^
203.                                         uint64_t channel)
204. {

libavutil/channel_layout.c:202:1: Parameter `channel`
  200. }
  201. 
  202. int av_get_channel_layout_channel_index(uint64_t channel_layout,
       ^
  203.                                         uint64_t channel)
  204. {

libavutil/channel_layout.c:208:5: Binary operation: (0 - 1):unsigned64 by call to `av_get_channel_layout_channel_index` 
  206.         av_get_channel_layout_nb_channels(channel) != 1)
  207.         return AVERROR(EINVAL);
  208.     channel_layout &= channel - 1;
           ^
  209.     return av_get_channel_layout_nb_channels(channel_layout);
  210. }
