From e93551d5b0e08eac5fd9ad899bf814cb8d349bd6 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Sun, 17 Aug 2014 01:42:05 +0300 Subject: [PATCH] codecparser: h264: Use proper bit_reader api while parsing buffering_period SEI https://bugzilla.gnome.org/show_bug.cgi?id=734970 --- gst-libs/gst/codecparsers/gsth264parser.c | 8 ++++---- gst-libs/gst/codecparsers/gsth264parser.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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 -- 2.34.1