Revision 43e4d57f libavformat/utils.c

View differences:

libavformat/utils.c
2089 2089
                st->parser->flags |= PARSER_FLAG_COMPLETE_FRAMES;
2090 2090
            }
2091 2091
        }
2092
        assert(!st->codec->codec);
2093
        //try to just open decoders, in case this is enough to get parameters
2094
        if(!has_codec_parameters(st->codec)){
2095
            AVCodec *codec = avcodec_find_decoder(st->codec->codec_id);
2096
            if (codec)
2097
                avcodec_open(st->codec, codec);
2098
        }
2092 2099
    }
2093 2100

  
2094 2101
    for(i=0;i<MAX_STREAMS;i++){

Also available in: Unified diff