diff options
author | Mans Rullgard <mans@mansr.com> | 2011-10-09 20:18:34 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-10-11 12:05:50 +0100 |
commit | cb668476ab1343d27e03edc0b32f57ca7a187471 (patch) | |
tree | 2832d7c298f62d51acd5360068d00880ceefc45c /libavcodec/mpegvideo.h | |
parent | 4c7a232fc81fdbdee279ab819a255f624a22b083 (diff) | |
download | ffmpeg-cb668476ab1343d27e03edc0b32f57ca7a187471.tar.gz |
motion_est: make MotionExtContext.map_generation unsigned
The way this value is used, it should be an unsigned type.
While the numerical value has no meaning, unsigned wraparound
is relied upon.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index d0f4bfdc6c..7de72172b1 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -154,7 +154,7 @@ typedef struct MotionEstContext{ int best_bits; uint32_t *map; ///< map to avoid duplicate evaluations uint32_t *score_map; ///< map to store the scores - int map_generation; + unsigned map_generation; int pre_penalty_factor; int penalty_factor; /**< an estimate of the bits required to code a given mv value, e.g. (1,0) takes |