Commit 902e9334 authored by Marton Balint's avatar Marton Balint

avcodec/get_bits: use unsigned integers in show_bits and get_bits

The return value is also unsigned.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 9f8854cb
...@@ -380,7 +380,7 @@ static inline int get_sbits(GetBitContext *s, int n) ...@@ -380,7 +380,7 @@ static inline int get_sbits(GetBitContext *s, int n)
*/ */
static inline unsigned int get_bits(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 #if CACHED_BITSTREAM_READER
av_assert2(n>0 && n<=32); av_assert2(n>0 && n<=32);
...@@ -442,7 +442,7 @@ static inline unsigned int get_bits_le(GetBitContext *s, int n) ...@@ -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) static inline unsigned int show_bits(GetBitContext *s, int n)
{ {
register int tmp; register unsigned int tmp;
#if CACHED_BITSTREAM_READER #if CACHED_BITSTREAM_READER
if (n > s->bits_left) if (n > s->bits_left)
refill_32(s); refill_32(s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment