diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index d926f57575..0aabca23cc 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -306,10 +306,10 @@ static inline unsigned int get_bits_long(GetBitContext *s, int n) return get_bits(s, n); else { #ifdef BITSTREAM_READER_LE - int ret = get_bits(s, 16); + unsigned ret = get_bits(s, 16); return ret | (get_bits(s, n-16) << 16); #else - int ret = get_bits(s, 16) << (n-16); + unsigned ret = get_bits(s, 16) << (n-16); return ret | get_bits(s, n-16); #endif }