Mercurial > libavformat.hg
diff utils.c @ 842:43210d766412 libavformat
parse pict_type for streams in avi
fix mpeg4 parser so it outputs te pict_type
support header only parseing without repacking
author | michael |
---|---|
date | Mon, 15 Aug 2005 15:58:21 +0000 |
parents | ba7631ba33a7 |
children | fd1c2109505e |
line wrap: on
line diff
--- a/utils.c Mon Aug 15 14:22:43 2005 +0000 +++ b/utils.c Mon Aug 15 15:58:21 2005 +0000 @@ -927,6 +927,8 @@ 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 @@ //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; + } } }