mirror of
https://github.com/ittiam-systems/libhevc.git
synced 2026-08-15 23:32:35 +07:00
Update sps id after decoding the sps
The update of sps_id in ps_codec is moved to the end of the sps parsing function to ensure the sps is completely parsed without any error Bug: 71567394 Test: poc before/after Change-Id: I072b7e0486170ffc46b5c6807aca492013b1b06e
This commit is contained in:
parent
6a587c6be7
commit
df865d1a3d
1 changed files with 4 additions and 2 deletions
|
|
@ -1238,8 +1238,7 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
ps_sps->i1_vps_id = vps_id;
|
||||
ps_sps->i1_sps_max_sub_layers = sps_max_sub_layers;
|
||||
ps_sps->i1_sps_temporal_id_nesting_flag = sps_temporal_id_nesting_flag;
|
||||
/* This is used only during initialization to get reorder count etc */
|
||||
ps_codec->i4_sps_id = sps_id;
|
||||
|
||||
memcpy(&ps_sps->s_ptl, &s_ptl, sizeof(profile_tier_lvl_info_t));
|
||||
|
||||
UEV_PARSE("chroma_format_idc", value, ps_bitstrm);
|
||||
|
|
@ -1600,6 +1599,9 @@ IHEVCD_ERROR_T ihevcd_parse_sps(codec_t *ps_codec)
|
|||
}
|
||||
}
|
||||
|
||||
/* This is used only during initialization to get reorder count etc */
|
||||
ps_codec->i4_sps_id = sps_id;
|
||||
|
||||
ps_codec->i4_sps_done = 1;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue