From 47bc52f8216d9de3e50160adb929620ac31ede99 Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Tue, 26 Apr 2011 09:09:05 -0700 Subject: [PATCH] get_bits: make cache unsigned to eliminate undefined signed overflow. --- libavcodec/get_bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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