[FFmpeg-devel] [PATCH] close parser in av_find_stream_info is parsing is not needed

Baptiste Coudurier baptiste.coudurier
Mon May 17 22:17:42 CEST 2010

Hey guys,


The parser is opened here:

         //only for the split stuff
         if (!st->parser && !(ic->flags & AVFMT_FLAG_NOPARSE)) {
             st->parser = av_parser_init(st->codec->codec_id);
             if(st->need_parsing == AVSTREAM_PARSE_HEADERS && st->parser){
                 st->parser->flags |= PARSER_FLAG_COMPLETE_FRAMES;

So either, it must be closed after, or it shouldn't be opened if parsing 
is not needed. I'm not sure of the side effects.

Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: close_parser.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100517/3c575ad1/attachment.bin>

More information about the ffmpeg-devel mailing list