summaryrefslogtreecommitdiff
path: root/libavcodec/vc1.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-16 00:48:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-16 04:58:46 +0100
commit7845f8d282a98d5e01aaeddfa9af698697d8874d (patch)
tree92c76e7576032e6dc4f5849e18278b855e2ab1fc /libavcodec/vc1.h
parent8f42b09604a6751eb3d3c225b8270b708a8338f4 (diff)
vc1dec: do not allow field_mode to change after the first header
Fixes out of array accesses. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1.h')
-rw-r--r--libavcodec/vc1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vc1.h b/libavcodec/vc1.h
index 6263d1dc0b..4ed8923469 100644
--- a/libavcodec/vc1.h
+++ b/libavcodec/vc1.h
@@ -368,6 +368,7 @@ typedef struct VC1Context{
int qs_last; ///< if qpel has been used in the previous (tr.) picture
int bmvtype;
int frfd, brfd; ///< reference frame distance (forward or backward)
+ int first_pic_header_flag;
int pic_header_flag;
/** Frame decoding info for sprite modes */