diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c index 96cfbbf1fe..4b69775414 100644 --- a/libavcodec/alsdec.c +++ b/libavcodec/alsdec.c @@ -867,7 +867,7 @@ static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) res >>= 1; if (cur_k) { - res *= 1 << cur_k; + res *= 1U << cur_k; res |= get_bits_long(gb, cur_k); } }