[FFmpeg-cvslog] hevc: store profile and level in AVCodecContext

Gildas Cocherel git at videolan.org
Sat Dec 21 00:33:05 CET 2013


ffmpeg | branch: master | Gildas Cocherel <gildas.cocherel at laposte.net> | Sat Dec 14 15:50:28 2013 +0100| [321cb8b048c7a8c0d2950f9278f36d912a886fa0] | committer: Anton Khirnov

hevc: store profile and level in AVCodecContext

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=321cb8b048c7a8c0d2950f9278f36d912a886fa0
---

 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 ffmpeg-cvslog mailing list