diff --git a/gst-libs/gst/codecparsers/gsth264parser.c b/gst-libs/gst/codecparsers/gsth264parser.c index f3441983d5..66317459c9 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.c +++ b/gst-libs/gst/codecparsers/gsth264parser.c @@ -731,9 +731,9 @@ gst_h264_parser_parse_buffering_period (GstH264NalParser * nalparser, for (sched_sel_idx = 0; sched_sel_idx <= hrd->cpb_cnt_minus1; sched_sel_idx++) { - READ_UINT8 (nr, per->nal_initial_cpb_removal_delay[sched_sel_idx], + READ_UINT32 (nr, per->nal_initial_cpb_removal_delay[sched_sel_idx], nbits); - READ_UINT8 (nr, + READ_UINT32 (nr, per->nal_initial_cpb_removal_delay_offset[sched_sel_idx], nbits); } } @@ -745,9 +745,9 @@ gst_h264_parser_parse_buffering_period (GstH264NalParser * nalparser, for (sched_sel_idx = 0; sched_sel_idx <= hrd->cpb_cnt_minus1; sched_sel_idx++) { - READ_UINT8 (nr, per->vcl_initial_cpb_removal_delay[sched_sel_idx], + READ_UINT32 (nr, per->vcl_initial_cpb_removal_delay[sched_sel_idx], nbits); - READ_UINT8 (nr, + READ_UINT32 (nr, per->vcl_initial_cpb_removal_delay_offset[sched_sel_idx], nbits); } } diff --git a/gst-libs/gst/codecparsers/gsth264parser.h b/gst-libs/gst/codecparsers/gsth264parser.h index 8b2ff65e60..27e8214550 100644 --- a/gst-libs/gst/codecparsers/gsth264parser.h +++ b/gst-libs/gst/codecparsers/gsth264parser.h @@ -705,12 +705,12 @@ struct _GstH264BufferingPeriod GstH264SPS *sps; /* seq->vui_parameters->nal_hrd_parameters_present_flag */ - guint8 nal_initial_cpb_removal_delay[32]; - guint8 nal_initial_cpb_removal_delay_offset[32]; + guint32 nal_initial_cpb_removal_delay[32]; + guint32 nal_initial_cpb_removal_delay_offset[32]; /* seq->vui_parameters->vcl_hrd_parameters_present_flag */ - guint8 vcl_initial_cpb_removal_delay[32]; - guint8 vcl_initial_cpb_removal_delay_offset[32]; + guint32 vcl_initial_cpb_removal_delay[32]; + guint32 vcl_initial_cpb_removal_delay_offset[32]; }; struct _GstH264RecoveryPoint