diff h264.c @ 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 de631175196e
children 328b7d545d0b
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);