mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-10-16 22:06:46 +07:00
Check change in CTB size when decoding multiple SPS with same id am: 70940fbabd am: a9fc115a23
am: a368569d61
Change-Id: I8b9eae557279323378b728e6452550f2547610c6
This commit is contained in:
commit
06aa42bdc7
1 changed files with 13 additions and 0 deletions
|
|
@ -1675,6 +1675,19 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
/* Check if CTB size is different in case of multiple SPS with same ID */
|
||||
{
|
||||
sps_t *ps_sps_old = (ps_codec->s_parse.ps_sps_base + sps_id);
|
||||
if(ps_sps_old->i1_sps_valid && ps_sps_old->i1_log2_ctb_size != ctb_log2_size_y)
|
||||
{
|
||||
if(0 == ps_codec->i4_first_pic_done)
|
||||
{
|
||||
return IHEVCD_INVALID_PARAMETER;
|
||||
}
|
||||
ps_codec->i4_reset_flag = 1;
|
||||
return (IHEVCD_ERROR_T)IVD_RES_CHANGED;
|
||||
}
|
||||
}
|
||||
ps_sps->i1_log2_ctb_size = ctb_log2_size_y;
|
||||
|
||||
UEV_PARSE("log2_min_transform_block_size_minus2", value, ps_bitstrm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue