Revision c92a9d06

View differences:

ffplay.c
2381 2381
    ap->height= frame_height;
2382 2382
    ap->time_base= (AVRational){1, 25};
2383 2383
    ap->pix_fmt = frame_pix_fmt;
2384
    ic->flags |= AVFMT_FLAG_PRIV_OPT;
2384 2385

  
2385
    set_context_opts(ic, avformat_opts, AV_OPT_FLAG_DECODING_PARAM, NULL);
2386 2386

  
2387 2387
    err = av_open_input_file(&ic, is->filename, is->iformat, 0, ap);
2388
    if (err >= 0) {
2389
        set_context_opts(ic, avformat_opts, AV_OPT_FLAG_DECODING_PARAM, NULL);
2390
        err = av_demuxer_open(ic, ap);
2391
        if(err < 0){
2392
            avformat_free_context(ic);
2393
            ic= NULL;
2394
        }
2395
    }
2388 2396
    if (err < 0) {
2389 2397
        print_error(is->filename, err);
2390 2398
        ret = -1;

Also available in: Unified diff