diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index e3fbaa62c7..5a4d272f78 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -208,7 +208,7 @@ static enum AVChannel thd_channel_layout_extract_channel(uint64_t channel_layout return AV_CHAN_NONE; for (i = 0; i < FF_ARRAY_ELEMS(thd_channel_order); i++) - if (channel_layout & (1 << thd_channel_order[i]) && !index--) + if (channel_layout & (1ULL << thd_channel_order[i]) && !index--) return thd_channel_order[i]; return AV_CHAN_NONE; }