[FFmpeg-cvslog] r17575 - trunk/libavcodec/h264_parser.c

cehoyos subversion
Tue Feb 24 23:24:34 CET 2009


Author: cehoyos
Date: Tue Feb 24 23:24:34 2009
New Revision: 17575

Log:
Export timestamp parameter from H.264.

Patch by Ivan Schreter, schreter gmx net

Modified:
   trunk/libavcodec/h264_parser.c

Modified: trunk/libavcodec/h264_parser.c
==============================================================================
--- trunk/libavcodec/h264_parser.c	Tue Feb 24 23:19:09 2009	(r17574)
+++ trunk/libavcodec/h264_parser.c	Tue Feb 24 23:24:34 2009	(r17575)
@@ -123,6 +123,9 @@ static inline int parse_nal_units(AVCode
 
     h->s.avctx= avctx;
     h->sei_recovery_frame_cnt = -1;
+    h->sei_dpb_output_delay         =  0;
+    h->sei_cpb_removal_delay        = -1;
+    h->sei_buffering_period_present =  0;
 
     for(;;) {
         int src_length, dst_length, consumed;
@@ -256,6 +259,10 @@ static int h264_parse(AVCodecParserConte
         }
 
         parse_nal_units(s, avctx, buf, buf_size);
+
+        s->dts_sync_point    = h->sei_buffering_period_present;
+        s->dts_ref_dts_delta = h->sei_cpb_removal_delay;
+        s->pts_dts_delta     = h->sei_dpb_output_delay;
     }
 
     *poutbuf = buf;




More information about the ffmpeg-cvslog mailing list