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

cehoyos subversion
Thu Feb 19 00:25:59 CET 2009


Author: cehoyos
Date: Thu Feb 19 00:25:59 2009
New Revision: 17439

Log:
Store CPB count in the context.

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 22:32:59 2009	(r17438)
+++ trunk/libavcodec/h264.c	Thu Feb 19 00:25:59 2009	(r17439)
@@ -6925,6 +6925,7 @@ static inline int decode_hrd_parameters(
     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;
 }
 

Modified: trunk/libavcodec/h264.h
==============================================================================
--- trunk/libavcodec/h264.h	Wed Feb 18 22:32:59 2009	(r17438)
+++ trunk/libavcodec/h264.h	Thu Feb 19 00:25:59 2009	(r17439)
@@ -179,6 +179,7 @@ typedef struct SPS{
     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




More information about the ffmpeg-cvslog mailing list