mirror of
https://github.com/ittiam-systems/libavc.git
synced 2026-10-09 10:22:17 +07:00
Merge "Decoder: Updated error check while parsing num_ref_idx_lx_active." into mnc-dev am: 224824ba17 am: 628056c0ed am: becbdb15b7 am: 2f85a749c5 am: bd6a74b45b am: 828dc44ed5 am: a1d4d39a61
am: b4f8a983ad
Change-Id: Ied955e6ffdf24bf0ef763906f9e07a10fca0da73
This commit is contained in:
commit
d3ea876a4d
2 changed files with 3 additions and 2 deletions
|
|
@ -1399,7 +1399,8 @@ WORD32 ih264d_parse_bslice(dec_struct_t * ps_dec, UWORD16 u2_first_mb_in_slice)
|
||||||
{
|
{
|
||||||
u1_max_ref_idx = MAX_FRAMES << 1;
|
u1_max_ref_idx = MAX_FRAMES << 1;
|
||||||
}
|
}
|
||||||
if((u4_temp > u1_max_ref_idx) || (ui_temp1 > u1_max_ref_idx))
|
if((u4_temp > u1_max_ref_idx) || (ui_temp1 > u1_max_ref_idx)
|
||||||
|
|| (u4_temp < 1) || (ui_temp1 < 1))
|
||||||
{
|
{
|
||||||
return ERROR_NUM_REF;
|
return ERROR_NUM_REF;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1961,7 +1961,7 @@ WORD32 ih264d_parse_pslice(dec_struct_t *ps_dec, UWORD16 u2_first_mb_in_slice)
|
||||||
|
|
||||||
|
|
||||||
UWORD8 u1_max_ref_idx = MAX_FRAMES << u1_field_pic_flag;
|
UWORD8 u1_max_ref_idx = MAX_FRAMES << u1_field_pic_flag;
|
||||||
if(u4_temp > u1_max_ref_idx)
|
if(u4_temp > u1_max_ref_idx || u4_temp < 1)
|
||||||
{
|
{
|
||||||
return ERROR_NUM_REF;
|
return ERROR_NUM_REF;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue