summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-02-02 13:35:48 +0100
committerAnton Khirnov <anton@khirnov.net>2014-02-04 10:39:07 +0100
commitb25e84b7399bd91605596b67d761d3464dbe8a6e (patch)
treec5c391339d3b9dadab161b9df7e5b497dd7469dd /libavcodec/hevc.h
parent816e5b997028c8215c804b1e58b2388592ed612b (diff)
hevc: check that the VCL NAL types are the same for all slice segments of a frame
Fixes possible invalid memory access for mismatching skipped/non-skipped slice segments. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Sample-Id: 00001533-google
Diffstat (limited to 'libavcodec/hevc.h')
-rw-r--r--libavcodec/hevc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index a674899b6f..accfcb6107 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -840,6 +840,8 @@ typedef struct HEVCContext {
HEVCNAL *nals;
int nb_nals;
int nals_allocated;
+ // type of the first VCL NAL of the current frame
+ enum NALUnitType first_nal_type;
// for checking the frame checksums
struct AVMD5 *md5_ctx;