Mercurial > libavformat.hg
diff utils.c @ 6059:65b0ea69d9af libavformat
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 | 8a4763913ae0 |
children | 92871def02f1 |
line wrap: on
line diff
--- a/utils.c Tue May 25 22:55:12 2010 +0000 +++ b/utils.c Wed May 26 04:20:32 2010 +0000 @@ -1117,6 +1117,8 @@ st->need_parsing = AVSTREAM_PARSE_NONE; }else if(st->need_parsing == AVSTREAM_PARSE_HEADERS){ st->parser->flags |= PARSER_FLAG_COMPLETE_FRAMES; + }else if(st->need_parsing == AVSTREAM_PARSE_FULL_ONCE){ + st->parser->flags |= PARSER_FLAG_ONCE; } if(st->parser && (s->iformat->flags & AVFMT_GENERIC_INDEX)){ st->parser->next_frame_offset=