From: Gildas Cocherel <[email protected]>
---
libavcodec/hevc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 229241b..ab237c0 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;
--
1.8.3.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel