summaryrefslogtreecommitdiff
path: root/libavcodec/get_bits.h
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2019-02-17 00:48:13 +0100
committerMarton Balint <cus@passwd.hu>2019-03-01 22:33:55 +0100
commit902e9334aabbb0bda23b718683c6676c4e6d07af (patch)
tree37b2c8127af74ae4450713be59d50b51e18523a0 /libavcodec/get_bits.h
parent9f8854cb5ad98e1b6456099e38c06d5eba3431ca (diff)
downloadffmpeg-902e9334aabbb0bda23b718683c6676c4e6d07af.tar.gz
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>
Diffstat (limited to 'libavcodec/get_bits.h')
-rw-r--r--libavcodec/get_bits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index 26a5b3e54f..2e2adc29c2 100644
--- a/libavcodec/get_bits.h
+++ b/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);