mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 23:32:35 +07:00
[automerger] Add limits check for depth hierarchy sps parameters am: f7287c7993 am: 46dc210bfd am: cd00b5307b am: 96f3a8ba91 am: 9b88c05de9
Change-Id: I2884bb46efb8272fc030b597e641e2b1cf3e9d30
This commit is contained in:
commit
914006b851
1 changed files with 8 additions and 0 deletions
|
|
@ -1424,9 +1424,17 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
ps_sps->i1_log2_diff_max_min_pcm_coding_block_size = 0;
|
||||
|
||||
UEV_PARSE("max_transform_hierarchy_depth_inter", value, ps_bitstrm);
|
||||
if(value < 0 || value > (ps_sps->i1_log2_ctb_size - ps_sps->i1_log2_min_transform_block_size))
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
ps_sps->i1_max_transform_hierarchy_depth_inter = value;
|
||||
|
||||
UEV_PARSE("max_transform_hierarchy_depth_intra", value, ps_bitstrm);
|
||||
if(value < 0 || value > (ps_sps->i1_log2_ctb_size - ps_sps->i1_log2_min_transform_block_size))
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
ps_sps->i1_max_transform_hierarchy_depth_intra = value;
|
||||
|
||||
/* String has a d (enabled) in order to match with HM */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue