mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 23:32:35 +07:00
[automerger] Return error for invalid reorder parameter am: 4286d31e9e am: df2bef9a86 am: e7950035a8 am: b596887685 am: 3d1c41dfb1
Change-Id: I49bcf6cf3713131d06edd5b29e02f60e1d757a0e
This commit is contained in:
commit
a5af46e7c4
1 changed files with 6 additions and 8 deletions
|
|
@ -1335,20 +1335,18 @@ 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)
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
ps_sps->ai1_sps_max_dec_pic_buffering[i] = value + 1;
|
||||
|
||||
if(ps_sps->ai1_sps_max_dec_pic_buffering[i] > MAX_DPB_SIZE)
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
UEV_PARSE("num_reorder_pics", value, ps_bitstrm);
|
||||
ps_sps->ai1_sps_max_num_reorder_pics[i] = value;
|
||||
|
||||
if(ps_sps->ai1_sps_max_num_reorder_pics[i] > ps_sps->ai1_sps_max_dec_pic_buffering[i])
|
||||
if(value > ps_sps->ai1_sps_max_dec_pic_buffering[i])
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
ps_sps->ai1_sps_max_num_reorder_pics[i] = value;
|
||||
|
||||
UEV_PARSE("max_latency_increase", value, ps_bitstrm);
|
||||
ps_sps->ai1_sps_max_latency_increase[i] = value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue