[FFmpeg-cvslog] r17620 - trunk/libavcodec/h264_parser.c
cehoyos
subversion
Thu Feb 26 21:36:03 CET 2009
Author: cehoyos
Date: Thu Feb 26 21:36:02 2009
New Revision: 17620
Log:
Initialize H264 parser context correctly if the optional SEI messages
are not present.
Patch by Ivan Schreter, schreter gmx net
Modified:
trunk/libavcodec/h264_parser.c
Modified: trunk/libavcodec/h264_parser.c
==============================================================================
--- trunk/libavcodec/h264_parser.c Thu Feb 26 17:17:17 2009 (r17619)
+++ trunk/libavcodec/h264_parser.c Thu Feb 26 21:36:02 2009 (r17620)
@@ -260,9 +260,15 @@ static int h264_parse(AVCodecParserConte
parse_nal_units(s, avctx, buf, buf_size);
+ if (h->sei_cpb_removal_delay >= 0) {
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;
+ } else {
+ s->dts_sync_point = INT_MIN;
+ s->dts_ref_dts_delta = INT_MIN;
+ s->pts_dts_delta = INT_MIN;
+ }
}
*poutbuf = buf;
More information about the ffmpeg-cvslog
mailing list