From b25e84b7399bd91605596b67d761d3464dbe8a6e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 2 Feb 2014 13:35:48 +0100 Subject: 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 --- libavcodec/hevc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/hevc.h') diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h index a674899..accfcb6 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; -- cgit v1.1