Commit 1e4467ce authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: h264: rename profile compatibility

parent 8239bad4
......@@ -253,6 +253,8 @@ void h264_release_sps( h264_sequence_parameter_set_t *p_sps )
free( p_sps );
}
#define H264_CONSTRAINT_SET_FLAG(N) (0x80 >> N)
static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
h264_sequence_parameter_set_t *p_sps )
{
......@@ -260,7 +262,7 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
int i_profile_idc = bs_read( p_bs, 8 );
p_sps->i_profile = i_profile_idc;
p_sps->i_profile_compatibility = bs_read( p_bs, 8 );
p_sps->i_constraint_set_flags = bs_read( p_bs, 8 );
p_sps->i_level = bs_read( p_bs, 8 );
/* sps id */
p_sps->i_id = bs_read_ue( p_bs );
......
......@@ -93,7 +93,8 @@ void h264_release_pps( h264_picture_parameter_set_t * );
struct h264_sequence_parameter_set_t
{
int i_id;
int i_profile, i_profile_compatibility, i_level;
int i_profile, i_level;
uint8_t i_constraint_set_flags;
/* according to avcC, 3 bits max for those */
uint8_t i_chroma_idc;
uint8_t i_bit_depth_luma;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment