Skip to content
Snippets Groups Projects
Commit 2c0c5e12 authored by Ivan Schreter's avatar Ivan Schreter Committed by Carl Eugen Hoyos
Browse files

Initialize H264 parser context correctly if the optional SEI messages

are not present.

Patch by Ivan Schreter, schreter gmx net

Originally committed as revision 17620 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 17af0525
No related branches found
No related tags found
No related merge requests found
...@@ -260,9 +260,15 @@ static int h264_parse(AVCodecParserContext *s, ...@@ -260,9 +260,15 @@ static int h264_parse(AVCodecParserContext *s,
parse_nal_units(s, avctx, buf, buf_size); 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_sync_point = h->sei_buffering_period_present;
s->dts_ref_dts_delta = h->sei_cpb_removal_delay; s->dts_ref_dts_delta = h->sei_cpb_removal_delay;
s->pts_dts_delta = h->sei_dpb_output_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; *poutbuf = buf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment