diff options
author | Ivan Schreter <schreter@gmx.net> | 2009-02-24 22:24:34 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-02-24 22:24:34 +0000 |
commit | c733922eec3cb9b0a0d5e8f06be8bf04de00613d (patch) | |
tree | 09f4fbe4292d38c7c97c4cc8051a2bbba621b7cc /libavcodec/h264_parser.c | |
parent | 27ca0a79c9d68059cdac610cdddb7039e6281529 (diff) | |
download | ffmpeg-c733922eec3cb9b0a0d5e8f06be8bf04de00613d.tar.gz |
Export timestamp parameter from H.264.
Patch by Ivan Schreter, schreter gmx net
Originally committed as revision 17575 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264_parser.c')
-rw-r--r-- | libavcodec/h264_parser.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index a0120ac2a1..934ca15cfe 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -123,6 +123,9 @@ static inline int parse_nal_units(AVCodecParserContext *s, 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(AVCodecParserContext *s, } 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; |