Revision 0ba0c8de

View differences:

cmdutils.c
138 138
    case AVERROR_NOMEM:
139 139
        fprintf(stderr, "%s: memory allocation error occured\n", filename);
140 140
        break;
141
    case AVERROR_NOENT:
142
        fprintf(stderr, "%s: no such file or directory\n", filename);
143
        break;
141 144
    default:
142 145
        fprintf(stderr, "%s: Error while opening file\n", filename);
143 146
        break;
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