aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAlex Converse <aconverse@google.com>2011-04-26 09:09:05 -0700
committerAlex Converse <alex.converse@gmail.com>2011-05-03 21:14:39 -0700
commit47bc52f8216d9de3e50160adb929620ac31ede99 (patch)
tree2fbb6b5ed4d0431e4728a9608bea144b993db26f /libavcodec
parent0bd433a916cd8d98fce47742fbf6d0f90ec941c4 (diff)
downloadffmpeg-47bc52f8216d9de3e50160adb929620ac31ede99.tar.gz
get_bits: make cache unsigned to eliminate undefined signed overflow.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/get_bits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h
index 2d36b81397..185ff316bb 100644
--- a/libavcodec/get_bits.h
+++ b/libavcodec/get_bits.h
@@ -127,7 +127,7 @@ for examples see get_bits, show_bits, skip_bits, get_vlc
# define OPEN_READER(name, gb) \
unsigned int name##_index = (gb)->index; \
- int name##_cache = 0
+ unsigned int name##_cache = 0
# define CLOSE_READER(name, gb) (gb)->index = name##_index