[FFmpeg-cvslog] r17411 - in trunk/libavcodec: h264.c h264.h

cehoyos subversion
Wed Feb 18 01:33:34 CET 2009


Author: cehoyos
Date: Wed Feb 18 01:33:33 2009
New Revision: 17411

Log:
Parse initial_cpb_removal_delay_length.

Patch by Ivan Schreter, schreter gmx net

Modified:
   trunk/libavcodec/h264.c
   trunk/libavcodec/h264.h

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Wed Feb 18 01:12:05 2009	(r17410)
+++ trunk/libavcodec/h264.c	Wed Feb 18 01:33:33 2009	(r17411)
@@ -6917,7 +6917,7 @@ static inline int decode_hrd_parameters(
         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);

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Wed Feb 18 01:12:05 2009	(r17410)
+++ trunk/libavcodec/h264.h	Wed Feb 18 01:33:33 2009	(r17411)
@@ -179,6 +179,7 @@ typedef struct SPS{
     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




More information about the ffmpeg-cvslog mailing list