Browse Source

avcodec/get_bits: use unsigned integers in show_bits and get_bits

The return value is also unsigned.

Signed-off-by: Marton Balint <cus@passwd.hu>
Marton Balint 6 years ago
parent
commit
902e9334aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libavcodec/get_bits.h

+ 2 - 2
libavcodec/get_bits.h

@@ -380,7 +380,7 @@ static inline int get_sbits(GetBitContext *s, int n)
  */
 static inline unsigned int get_bits(GetBitContext *s, int n)
 {
-    register int tmp;
+    register unsigned int tmp;
 #if CACHED_BITSTREAM_READER
 
     av_assert2(n>0 && n<=32);
@@ -442,7 +442,7 @@ static inline unsigned int get_bits_le(GetBitContext *s, int n)
  */
 static inline unsigned int show_bits(GetBitContext *s, int n)
 {
-    register int tmp;
+    register unsigned int tmp;
 #if CACHED_BITSTREAM_READER
     if (n > s->bits_left)
         refill_32(s);