[libav-commits] hevc: store profile and level in AVCodecContext

Gildas Cocherel git at libav.org
Fri Dec 20 19:48:05 CET 2013


Module: libav
Branch: master
Commit: 321cb8b048c7a8c0d2950f9278f36d912a886fa0

Author:    Gildas Cocherel <gildas.cocherel at laposte.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Sat Dec 14 15:50:28 2013 +0100

hevc: store profile and level in AVCodecContext

Signed-off-by: Anton Khirnov <anton at khirnov.net>

---

 libavcodec/hevc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 530abdc..784e58b 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;



More information about the libav-commits mailing list