aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ivi_common.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-12 21:50:20 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-12 23:01:42 +0100
commit7ab690bf5f4b24fca95113c0ee44f0847c9c3c6d (patch)
tree8e78b17e920a0019b99e82ad40d55eff0b7101b3 /libavcodec/ivi_common.h
parent7581ad24a9240e9af4f344d0cb6a41fbe7ae71cd (diff)
downloadffmpeg-7ab690bf5f4b24fca95113c0ee44f0847c9c3c6d.tar.gz
indeo4: more complete check for the scan vs block sizes.
Fixes out of array reads Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ivi_common.h')
-rw-r--r--libavcodec/ivi_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/ivi_common.h b/libavcodec/ivi_common.h
index 44b28cd231..e3afe435e0 100644
--- a/libavcodec/ivi_common.h
+++ b/libavcodec/ivi_common.h
@@ -152,6 +152,7 @@ typedef struct IVIBandDesc {
int quant_mat; ///< dequant matrix index
int glob_quant; ///< quant base for this band
const uint8_t *scan; ///< ptr to the scan pattern
+ int scan_size; ///< size of the scantable
IVIHuffTab blk_vlc; ///< vlc table for decoding block data