mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 17:46:50 +08:00
[h264d]: fix error: when calculate wrap_frame_num
tips: when frame_num increase by one, must remainder by max_frame_num. Change-Id: I972e498bf608639dd29293dfed0bd93180d3f2ed Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
@@ -511,7 +511,7 @@ static MPP_RET check_dpb_discontinuous(H264_StorePic_t *p_last, H264_StorePic_t
|
||||
RK_U32 error_flag = 0;
|
||||
|
||||
if (dec_pic->frame_num == p_last->frame_num ||
|
||||
dec_pic->frame_num == (p_last->frame_num + 1))
|
||||
dec_pic->frame_num == ((p_last->frame_num + 1) % currSlice->p_Vid->max_frame_num))
|
||||
error_flag = 0;
|
||||
else
|
||||
error_flag = 1;
|
||||
|
Reference in New Issue
Block a user