# HG changeset patch # User cehoyos # Date 1234917213 0 # Node ID a5dce344904a9ae757f005339c866b504caf55b3 # Parent d08dc32559e71791b76c24e533a63e8c4c0c339e Parse initial_cpb_removal_delay_length. Patch by Ivan Schreter, schreter gmx net diff -r d08dc32559e7 -r a5dce344904a h264.c --- a/h264.c Wed Feb 18 00:11:49 2009 +0000 +++ b/h264.c Wed Feb 18 00:33:33 2009 +0000 @@ -6917,7 +6917,7 @@ get_ue_golomb(&s->gb); /* cpb_size_value_minus1 */ get_bits1(&s->gb); /* cbr_flag */ } - get_bits(&s->gb, 5); /* initial_cpb_removal_delay_length_minus1 */ + sps->initial_cpb_removal_delay_length = get_bits(&s->gb, 5) + 1; sps->cpb_removal_delay_length = get_bits(&s->gb, 5) + 1; sps->dpb_output_delay_length = get_bits(&s->gb, 5) + 1; sps->time_offset_length = get_bits(&s->gb, 5); diff -r d08dc32559e7 -r a5dce344904a h264.h --- a/h264.h Wed Feb 18 00:11:49 2009 +0000 +++ b/h264.h Wed Feb 18 00:33:33 2009 +0000 @@ -179,6 +179,7 @@ int vcl_hrd_parameters_present_flag; int pic_struct_present_flag; int time_offset_length; + int initial_cpb_removal_delay_length; ///< initial_cpb_removal_delay_length_minus1 +1 int cpb_removal_delay_length; ///< cpb_removal_delay_length_minus1 + 1 int dpb_output_delay_length; ///< dpb_output_delay_length_minus1 + 1 int bit_depth_luma; ///< bit_depth_luma_minus8 + 8