mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-07 11:01:34 +07:00
Handle invalid num_reorder_pics & max_dec_pic_buffering in SPS am: 1ab5ce7e42 am: cb6fa6a0d4
am: f5674af080
Change-Id: Ie8e9156ead63e23579db23873a8bba10b939e144
This commit is contained in:
commit
b3169d93df
1 changed files with 10 additions and 0 deletions
|
|
@ -1322,9 +1322,19 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
UEV_PARSE("max_dec_pic_buffering", value, ps_bitstrm);
|
||||
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])
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
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