[h264d_parse]: skip sp/si slice

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I86622ad339594f4d7b613ee5603cd6d11bb9b428
This commit is contained in:
Yandong Lin
2021-07-29 16:12:10 +08:00
committed by Herman Chen
parent b212aa4d08
commit 02058ce67a

View File

@@ -450,6 +450,10 @@ MPP_RET process_slice(H264_SLICE_t *currSlice)
READ_UE(p_bitctx, &currSlice->start_mb_nr); //!< first_mb_in_slice
READ_UE(p_bitctx, &temp); //!< slice_type
p_Vid->slice_type = currSlice->slice_type = temp % 5;
if (p_Vid->slice_type == H264_SP_SLICE || p_Vid->slice_type == H264_SI_SLICE) {
H264D_WARNNING("sp or si slice not support\n");
goto __FAILED;
}
READ_UE(p_bitctx, &currSlice->pic_parameter_set_id);
init_slice_parmeters(currSlice);
FUN_CHECK(ret = set_slice_user_parmeters(currSlice));