From 321cb8b048c7a8c0d2950f9278f36d912a886fa0 Mon Sep 17 00:00:00 2001 From: Gildas Cocherel Date: Sat, 14 Dec 2013 15:50:28 +0100 Subject: [PATCH] hevc: store profile and level in AVCodecContext Signed-off-by: Anton Khirnov --- libavcodec/hevc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 530abdc26e..784e58bec7 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -495,6 +495,9 @@ static int hls_slice_header(HEVCContext *s) s->max_ra = INT_MAX; } + s->avctx->profile = s->sps->ptl.general_ptl.profile_idc; + s->avctx->level = s->sps->ptl.general_ptl.level_idc; + sh->dependent_slice_segment_flag = 0; if (!sh->first_slice_in_pic_flag) { int slice_address_length; -- 2.11.0