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
Bug: 33864300 Change-Id: I920e45c3420a1a41a366ad45bd4186c5f6af6d6b
This commit is contained in:
parent
50ad42cf93
commit
1ab5ce7e42
1 changed files with 10 additions and 0 deletions
|
|
@ -1321,9 +1321,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