codecparser: h264: Use proper bit_reader api while parsing buffering_period SEI

https://bugzilla.gnome.org/show_bug.cgi?id=734970
This commit is contained in:
Sreerenj Balachandran 2014-08-17 01:42:05 +03:00 committed by Tim-Philipp Müller
parent 8caf5b7360
commit e93551d5b0
2 changed files with 8 additions and 8 deletions

View file

@ -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);
}
}

View file

@ -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