Revision fa119522 ffmpeg.c

View differences:

ffmpeg.c
3258 3258
    ic->subtitle_codec_id=
3259 3259
        find_codec_or_die(subtitle_codec_name, AVMEDIA_TYPE_SUBTITLE, 0,
3260 3260
                          avcodec_opts[AVMEDIA_TYPE_SUBTITLE]->strict_std_compliance);
3261
    ic->flags |= AVFMT_FLAG_NONBLOCK;
3261
    ic->flags |= AVFMT_FLAG_NONBLOCK | AVFMT_FLAG_PRIV_OPT;
3262 3262

  
3263 3263
    /* open the input file with generic libav function */
3264 3264
    err = av_open_input_file(&ic, filename, file_iformat, 0, ap);
3265
    if(err >= 0){
3266
        set_context_opts(ic, avformat_opts, AV_OPT_FLAG_DECODING_PARAM, NULL);
3267
        err = av_demuxer_open(ic, ap);
3268
        if(err < 0)
3269
            avformat_free_context(ic);
3270
    }
3265 3271
    if (err < 0) {
3266 3272
        print_error(filename, err);
3267 3273
        ffmpeg_exit(1);

Also available in: Unified diff