From 90df438d207a4798c40c9c9dfe68975e36f35ac5 Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Wed, 4 Jun 2025 17:18:40 +0800 Subject: [PATCH] fix[h265d_parser]: Fix slice header parse Change-Id: Ib27e3dcefcdb4b1a4116bf71c3bbb778d718e22d Signed-off-by: Yandong Lin --- mpp/codec/dec/h265/h265d_parser.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mpp/codec/dec/h265/h265d_parser.c b/mpp/codec/dec/h265/h265d_parser.c index 5c1c40d6..04f32551 100644 --- a/mpp/codec/dec/h265/h265d_parser.c +++ b/mpp/codec/dec/h265/h265d_parser.c @@ -1064,6 +1064,13 @@ static RK_S32 hls_slice_header(HEVCContext *s) return MPP_ERR_STREAM; } } + if (sh->num_entry_point_offsets) { + RK_U32 offset_len_minus1 = 0; + + READ_UE(gb, &offset_len_minus1); + for (i = 0; i < sh->num_entry_point_offsets; i++) + SKIP_BITS(gb, offset_len_minus1 + 1); + } } if (s->pps->slice_header_extension_present_flag) { //if slice_header_extension_present_flag is 1, we should cut the extension data.