diff options
author | Alex Converse <aconverse@google.com> | 2011-04-26 09:09:05 -0700 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-05-03 21:14:39 -0700 |
commit | 47bc52f8216d9de3e50160adb929620ac31ede99 (patch) | |
tree | 2fbb6b5ed4d0431e4728a9608bea144b993db26f | |
parent | 0bd433a916cd8d98fce47742fbf6d0f90ec941c4 (diff) | |
download | ffmpeg-47bc52f8216d9de3e50160adb929620ac31ede99.tar.gz |
get_bits: make cache unsigned to eliminate undefined signed overflow.
-rw-r--r-- | libavcodec/get_bits.h | 2 |
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 |