From: Sreerenj Balachandran Date: Sat, 16 Aug 2014 22:42:05 +0000 (+0300) Subject: codecparser: h264: Use proper bit_reader api while parsing buffering_period SEI X-Git-Tag: 1.19.3~507^2~10448 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e93551d5b0e08eac5fd9ad899bf814cb8d349bd6;p=platform%2Fupstream%2Fgstreamer.git codecparser: h264: Use proper bit_reader api while parsing buffering_period SEI https://bugzilla.gnome.org/show_bug.cgi?id=734970 --- 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