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 am: b3169d93df am: 0c49980418 am: 4b4a16e22a
am: 93b2398b29
Change-Id: I3007ea74e0e8409d0893a554060e89f726f3dd49
This commit is contained in:
commit
a5596a2b1d
1 changed files with 10 additions and 0 deletions
|
|
@ -1312,9 +1312,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