summaryrefslogtreecommitdiff
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-20 19:43:58 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-20 19:53:54 +0100
commitda7672b20a746643bb13899dc7f934d7f5db466f (patch)
tree7f1d1bf89887ef1eb59597900aa37f56b59caff5 /libavcodec/h264.h
parent039f55c80333a9db0e64e5c975b0820bff01c5e2 (diff)
h264: Fix handling of changing reference counts between slices
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/h264.h')
-rw-r--r--libavcodec/h264.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 0c8c7ad403..ccaf8bb125 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -572,6 +572,7 @@ typedef struct H264Context {
enum AVPictureType pict_type;
int last_slice_type;
+ unsigned int last_ref_count[2];
/** @} */
/**