summaryrefslogtreecommitdiff
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-09-06 13:30:08 +0200
committerJanne Grunau <janne-libav@jannau.net>2012-12-18 19:55:10 +0100
commit9e696d2e5ffaa763c564682ec18c3b51b3e5fccc (patch)
tree82729641d85213d1a16c015e6e246c93ceece6a5 /libavcodec/h264.h
parentf1d8763a02b5fce9a7d9789e049d74a45b15e1e8 (diff)
h264: support frame parameter changes during frame-mt
Fixes CVE-2012-2782.
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 6691be4a94..8596121aab 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -448,6 +448,8 @@ typedef struct H264Context {
int nal_length_size; ///< Number of bytes used for nal length (1, 2 or 4)
int got_first; ///< this flag is != 0 if we've parsed a frame
+ int context_reinitialized;
+
SPS *sps_buffers[MAX_SPS_COUNT];
PPS *pps_buffers[MAX_PPS_COUNT];