diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-21 18:24:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-21 18:24:56 +0100 |
commit | e92a78a4095d69d876bef189225608a35166dc4a (patch) | |
tree | 2592e10ddf0ae1e3e366fc20b87b6c0ff4e9c8a3 /libavcodec/mpegvideo.h | |
parent | c3272674c943474ec6bfcd75e0d9b4b4ca95ff32 (diff) | |
download | ffmpeg-e92a78a4095d69d876bef189225608a35166dc4a.tar.gz |
avcodec/mpegvideo: make mc_mb_var_sum / mb_var_sum 64bit
This avoids a hypothetical integer overflow with very high resolution video
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index 1338659154..ec1ec7d31e 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -130,8 +130,8 @@ typedef struct Picture{ int field_picture; ///< whether or not the picture was encoded in separate fields - int mb_var_sum; ///< sum of MB variance for current frame - int mc_mb_var_sum; ///< motion compensated MB variance for current frame + int64_t mb_var_sum; ///< sum of MB variance for current frame + int64_t mc_mb_var_sum; ///< motion compensated MB variance for current frame int b_frame_score; int needs_realloc; ///< Picture needs to be reallocated (eg due to a frame size change) |