diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2005-08-15 19:58:21 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2005-08-15 19:58:21 +0400 |
commit | 7cbaa7bafa16b572aaae692722a9f8db90b65cb8 (patch) | |
tree | 050620b8c810b57d2d8d7f2997c6bc0ae511bd0d /libavformat/utils.c | |
parent | 30bc6613fed9592e81b04818cb3e6c95088460d1 (diff) |
parse pict_type for streams in avi
fix mpeg4 parser so it outputs te pict_type
support header only parseing without repacking
Originally committed as revision 4527 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 5a81ee0680..eb19eea527 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -927,6 +927,8 @@ static int av_read_frame_internal(AVFormatContext *s, AVPacket *pkt) if (!st->parser) { /* no parser available : just output the raw packets */ st->need_parsing = 0; + }else if(st->need_parsing == 2){ + st->parser->flags |= PARSER_FLAG_COMPLETE_FRAMES; } } } @@ -1846,6 +1848,9 @@ int av_find_stream_info(AVFormatContext *ic) //only for the split stuff if (!st->parser) { st->parser = av_parser_init(st->codec->codec_id); + if(st->need_parsing == 2 && st->parser){ + st->parser->flags |= PARSER_FLAG_COMPLETE_FRAMES; + } } } |