mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 15:22:36 +07:00
[automerger] Return error for invalid sps sub layers parameters am: f4486cdb2f am: 37579e833a
Change-Id: Icc4e9c64e0769b7151e91c93e80471636d27c792
This commit is contained in:
commit
38e104d65a
1 changed files with 2 additions and 2 deletions
|
|
@ -1333,14 +1333,14 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
for(; i < ps_sps->i1_sps_max_sub_layers; i++)
|
||||
{
|
||||
UEV_PARSE("max_dec_pic_buffering", value, ps_bitstrm);
|
||||
if((value + 1) > MAX_DPB_SIZE)
|
||||
if(value < 0 || (value + 1) > MAX_DPB_SIZE)
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
ps_sps->ai1_sps_max_dec_pic_buffering[i] = value + 1;
|
||||
|
||||
UEV_PARSE("num_reorder_pics", value, ps_bitstrm);
|
||||
if(value > ps_sps->ai1_sps_max_dec_pic_buffering[i])
|
||||
if(value < 0 || value > ps_sps->ai1_sps_max_dec_pic_buffering[i])
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue