Skip to content

Commit

Permalink
[h264d_parse]: skip sp/si slice
Browse files Browse the repository at this point in the history
Signed-off-by: Yandong Lin <[email protected]>
Change-Id: I86622ad339594f4d7b613ee5603cd6d11bb9b428
  • Loading branch information
FumasterLin authored and HermanChen committed Jul 29, 2021
1 parent b212aa4 commit 02058ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mpp/codec/dec/h264/h264d_slice.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 02058ce

Please sign in to comment.