Revision 0ba0c8de libavformat/utils.c

View differences:

libavformat/utils.c
417 417

  
418 418
    if (!fmt || must_open_file) {
419 419
        /* if no file needed do not try to open one */
420
        if (url_fopen(pb, filename, URL_RDONLY) < 0) {
421
            err = AVERROR_IO;
420
        if ((err=url_fopen(pb, filename, URL_RDONLY)) < 0) {
422 421
            goto fail;
423 422
        }
424 423
        file_opened = 1;

Also available in: Unified diff