packetizer: h264: renamed hrd parameter flag
authorFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 11 Jun 2016 11:55:01 +0000 (13:55 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sat, 11 Jun 2016 19:20:37 +0000 (21:20 +0200)
modules/packetizer/h264.c
modules/packetizer/h264_nal.c
modules/packetizer/h264_nal.h

index ba890f4..f46ea28 100644 (file)
@@ -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;
 
index 3be76cd..c68c8ff 100644 (file)
@@ -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 */
index e97739d..0c4a911 100644 (file)
@@ -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;