diff options
author | Gildas Cocherel <gildas.cocherel@laposte.net> | 2013-12-14 15:50:28 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-12-20 19:36:24 +0100 |
commit | 321cb8b048c7a8c0d2950f9278f36d912a886fa0 (patch) | |
tree | 9371cd76f3a757e6f7af284809ac2f8611ac0819 | |
parent | 2a41826bea3833895dc06939831b7f35ca1f597e (diff) | |
download | ffmpeg-321cb8b048c7a8c0d2950f9278f36d912a886fa0.tar.gz |
hevc: store profile and level in AVCodecContext
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavcodec/hevc.c | 3 |
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; |