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
Change-Id: Ica2ca13d2d169fdc57fde89f503a005b506a2e6d
This commit is contained in:
commit
9b88c05de9
1 changed files with 8 additions and 0 deletions
|
|
@ -1422,9 +1422,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