Merge "Decoder: Fix integer overflow in poc calculation" am: 159799b4d4 am: d7617ea8b9 am: 820dfca937 am: e2cf6c5aec
Original change: 1376336
Change-Id: I341e0b9b1cd53147af4408b109492351e1f20d94
This commit is contained in:
commit
145c609dfc
1 changed files with 5 additions and 1 deletions
|
|
@ -1494,7 +1494,11 @@ WORD32 ih264d_mark_err_slice_skip(dec_struct_t * ps_dec,
|
|||
ps_dec->p_motion_compensate = ih264d_motion_compensate_bp;
|
||||
|
||||
if(ps_dec->ps_cur_pic != NULL)
|
||||
poc = ps_dec->ps_cur_pic->i4_poc + 2;
|
||||
{
|
||||
poc = ps_dec->ps_cur_pic->i4_poc;
|
||||
if (poc <= INT32_MAX - 2)
|
||||
poc += 2;
|
||||
}
|
||||
|
||||
j = -1;
|
||||
for(i = 0; i < MAX_NUM_PIC_PARAMS; i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue