diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-03-28 23:46:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-03-29 02:11:34 +0100 |
commit | 6ae03353de664d670b32c33726f81758646f99e6 (patch) | |
tree | f8c4ae41f08c4c1116ca2bce89c088a24e2936ce /libavcodec/mpegvideo.h | |
parent | 0fb9f77a39d37264d461180a22e843cf01c7317c (diff) | |
download | ffmpeg-6ae03353de664d670b32c33726f81758646f99e6.tar.gz |
mpegvideo: Make the table reallocation more robust.
This fixes out of array writes after resolution changes
No FFmpeg releases are known to be affected by this
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.h')
-rw-r--r-- | libavcodec/mpegvideo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index addbde0292..e62700cae3 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -119,6 +119,9 @@ typedef struct Picture{ AVBufferRef *mc_mb_var_buf; uint16_t *mc_mb_var; ///< Table for motion compensated MB variances + int alloc_mb_width; ///< mb_width used to allocate tables + int alloc_mb_height; ///< mb_height used to allocate tables + AVBufferRef *mb_mean_buf; uint8_t *mb_mean; ///< Table for MB luminance |