Revision f87b1b37 libavformat/img2.c

View differences:

libavformat/img2.c
270 270
                                  s->path, s->img_number)<0 && s->img_number > 1)
271 271
            return AVERROR(EIO);
272 272
        for(i=0; i<3; i++){
273
            if (avio_open(&f[i], filename, URL_RDONLY) < 0) {
273
            if (avio_open(&f[i], filename, AVIO_RDONLY) < 0) {
274 274
                if(i==1)
275 275
                    break;
276 276
                av_log(s1, AV_LOG_ERROR, "Could not open file : %s\n",filename);
......
354 354
            return AVERROR(EIO);
355 355
        }
356 356
        for(i=0; i<3; i++){
357
            if (avio_open(&pb[i], filename, URL_WRONLY) < 0) {
357
            if (avio_open(&pb[i], filename, AVIO_WRONLY) < 0) {
358 358
                av_log(s, AV_LOG_ERROR, "Could not open file : %s\n",filename);
359 359
                return AVERROR(EIO);
360 360
            }

Also available in: Unified diff