diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-03-21 18:12:58 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-21 18:12:58 +0100 |
commit | c3272674c943474ec6bfcd75e0d9b4b4ca95ff32 (patch) | |
tree | 7c8c6f7cb5d7aa14cacf697672289a979f667db4 /libavcodec/mpegvideo.h | |
parent | db55365d0f938ee93ed660a14c07f10f2a66dd10 (diff) | |
download | ffmpeg-c3272674c943474ec6bfcd75e0d9b4b4ca95ff32.tar.gz |
avcodec/mpegvideo: make mc_mb_var_sum_temp / mb_var_sum_temp 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 ef5092e7fb..1338659154 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -180,8 +180,8 @@ typedef struct MotionEstContext{ int stride; int uvstride; /* temp variables for picture complexity calculation */ - int mc_mb_var_sum_temp; - int mb_var_sum_temp; + int64_t mc_mb_var_sum_temp; + int64_t mb_var_sum_temp; int scene_change_score; /* cmp, chroma_cmp;*/ op_pixels_func (*hpel_put)[4]; |