# HG changeset patch # User cehoyos # Date 1234999559 0 # Node ID 9757b2f87d83312ab4b48ea333e314a7944054df # Parent 9218ef5d5afbc4c9564d7345d45bc81d77b6f527 Store CPB count in the context. Patch by Ivan Schreter, schreter gmx net diff -r 9218ef5d5afb -r 9757b2f87d83 h264.c --- a/h264.c Wed Feb 18 11:57:11 2009 +0000 +++ b/h264.c Wed Feb 18 23:25:59 2009 +0000 @@ -6925,6 +6925,7 @@ 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); + sps->cpb_cnt = cpb_count; return 0; } diff -r 9218ef5d5afb -r 9757b2f87d83 h264.h --- a/h264.h Wed Feb 18 11:57:11 2009 +0000 +++ b/h264.h Wed Feb 18 23:25:59 2009 +0000 @@ -179,6 +179,7 @@ int vcl_hrd_parameters_present_flag; int pic_struct_present_flag; int time_offset_length; + int cpb_cnt; ///< See H.264 E.1.2 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