summaryrefslogtreecommitdiff
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorGildas Cocherel <gildas.cocherel@laposte.net>2013-12-14 15:50:28 +0100
committerAnton Khirnov <anton@khirnov.net>2013-12-20 19:36:24 +0100
commit321cb8b048c7a8c0d2950f9278f36d912a886fa0 (patch)
tree9371cd76f3a757e6f7af284809ac2f8611ac0819 /libavcodec/hevc.c
parent2a41826bea3833895dc06939831b7f35ca1f597e (diff)
hevc: store profile and level in AVCodecContext
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c3
1 files changed, 3 insertions, 0 deletions
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;