diff --git a/libavcodec/lagarith.c b/libavcodec/lagarith.c index 5f97d0f806..2c6d70c065 100644 --- a/libavcodec/lagarith.c +++ b/libavcodec/lagarith.c @@ -128,7 +128,7 @@ static int lag_decode_prob(GetBitContext *gb, uint32_t *value) } val = get_bits_long(gb, bits); - val |= 1 << bits; + val |= 1U << bits; *value = val - 1;