Mercurial > libavcodec.hg
comparison h264_parser.c @ 11770:6d58a4f5e455 libavcodec
Add an AVSTREAM_PARSE_FULL_ONCE parsing mode to parse headers and combine packets once and only once.
author | alexc |
---|---|
date | Wed, 26 May 2010 04:20:32 +0000 |
parents | 7dd2a45249a9 |
children | f918fb753b31 |
comparison
equal
deleted
inserted
replaced
11769:847502a2f850 | 11770:6d58a4f5e455 |
---|---|
270 } else { | 270 } else { |
271 s->dts_sync_point = INT_MIN; | 271 s->dts_sync_point = INT_MIN; |
272 s->dts_ref_dts_delta = INT_MIN; | 272 s->dts_ref_dts_delta = INT_MIN; |
273 s->pts_dts_delta = INT_MIN; | 273 s->pts_dts_delta = INT_MIN; |
274 } | 274 } |
275 if (s->flags & PARSER_FLAG_ONCE) { | |
276 s->flags &= PARSER_FLAG_COMPLETE_FRAMES; | |
277 } | |
275 } | 278 } |
276 | 279 |
277 *poutbuf = buf; | 280 *poutbuf = buf; |
278 *poutbuf_size = buf_size; | 281 *poutbuf_size = buf_size; |
279 return next; | 282 return next; |