Commit 983caa91 authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: h264: renamed hrd parameter flag

parent 005c6278
......@@ -769,7 +769,7 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
p_sys->i_time_scale = p_sps->vui.i_time_scale;
p_sys->b_fixed_frame_rate = p_sps->vui.b_fixed_frame_rate;
p_sys->b_pic_struct_present_flag = p_sps->vui.b_pic_struct_present_flag;
p_sys->b_cpb_dpb_delays_present_flag = p_sps->vui.b_cpb_dpb_delays_present_flag;
p_sys->b_cpb_dpb_delays_present_flag = p_sps->vui.b_hrd_parameters_present_flag;
p_sys->i_cpb_removal_delay_length_minus1 = p_sps->vui.i_cpb_removal_delay_length_minus1;
p_sys->i_dpb_output_delay_length_minus1 = p_sps->vui.i_dpb_output_delay_length_minus1;
......
......@@ -474,13 +474,13 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
}
/* Nal hrd & VC1 hrd parameters */
p_sps->vui.b_cpb_dpb_delays_present_flag = false;
p_sps->vui.b_hrd_parameters_present_flag = false;
for ( int i=0; i<2; i++ )
{
i_tmp = bs_read( p_bs, 1 );
if( i_tmp )
{
p_sps->vui.b_cpb_dpb_delays_present_flag = true;
p_sps->vui.b_hrd_parameters_present_flag = true;
uint32_t count = bs_read_ue( p_bs ) + 1;
bs_read( p_bs, 4 );
bs_read( p_bs, 4 );
......@@ -497,7 +497,7 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
}
}
if( p_sps->vui.b_cpb_dpb_delays_present_flag )
if( p_sps->vui.b_hrd_parameters_present_flag )
bs_read( p_bs, 1 );
/* pic struct info */
......
......@@ -129,7 +129,7 @@ struct h264_sequence_parameter_set_t
uint32_t i_time_scale;
bool b_fixed_frame_rate;
bool b_pic_struct_present_flag;
bool b_cpb_dpb_delays_present_flag;
bool b_hrd_parameters_present_flag;
uint8_t i_cpb_removal_delay_length_minus1;
uint8_t i_dpb_output_delay_length_minus1;
} vui;
......
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