fix[h265d_parser]: Fix slice header parse

Change-Id: Ib27e3dcefcdb4b1a4116bf71c3bbb778d718e22d
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
This commit is contained in:
Yandong Lin
2025-06-04 17:18:40 +08:00
parent 22febcaca8
commit 90df438d20

View File

@@ -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.