diff options
author | Mans Rullgard <mans@mansr.com> | 2011-11-26 20:59:17 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-11-26 22:53:47 +0000 |
commit | 8540dcfd7af14da4080770dfbfa997cffdd0878b (patch) | |
tree | 3fe128b01346161856d7081bf3be3dd41ad44664 /libavcodec/snow.h | |
parent | 0e55edcb57bc3104e704e55c8267c72426358c36 (diff) | |
download | ffmpeg-8540dcfd7af14da4080770dfbfa997cffdd0878b.tar.gz |
snow: fix integer overflows
The way these values are used, they should have an unsigned type.
A similar change was made for mpegvideo in cb66847.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/snow.h')
-rw-r--r-- | libavcodec/snow.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/snow.h b/libavcodec/snow.h index f43deb1d72..bd54994b5b 100644 --- a/libavcodec/snow.h +++ b/libavcodec/snow.h @@ -154,8 +154,8 @@ typedef struct SnowContext{ Plane plane[MAX_PLANES]; BlockNode *block; #define ME_CACHE_SIZE 1024 - int me_cache[ME_CACHE_SIZE]; - int me_cache_generation; + unsigned me_cache[ME_CACHE_SIZE]; + unsigned me_cache_generation; slice_buffer sb; int memc_only; |