summaryrefslogtreecommitdiff
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2010-05-26 04:20:32 +0000
committerAlex Converse <alex.converse@gmail.com>2010-05-26 04:20:32 +0000
commit74a6df59e3bc206931e8e7270c4bb6af77c6e5dc (patch)
treed18c34e54a3c4e7546dba4ad2004463faaeac263 /libavformat/utils.c
parent9069b7d35fba37e0e0d9dbb44f03c10ff2e50acf (diff)
Add an AVSTREAM_PARSE_FULL_ONCE parsing mode to parse headers and combine packets once and only once.
Originally committed as revision 23332 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 62c56e490c..d1b77705e5 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1117,6 +1117,8 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt)
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=