changeset 8965:a5dce344904a libavcodec

Parse initial_cpb_removal_delay_length. Patch by Ivan Schreter, schreter gmx net
author cehoyos
date Wed, 18 Feb 2009 00:33:33 +0000
parents d08dc32559e7
children 328b7d545d0b
files h264.c h264.h
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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