Revision 9ed3afcb libavformat/img2.c

View differences:

libavformat/img2.c
264 264
                                  s->path, s->img_number)<0 && s->img_number > 1)
265 265
            return AVERROR(EIO);
266 266
        for(i=0; i<3; i++){
267
            if (url_fopen(&f[i], filename, URL_RDONLY) < 0)
267
            if (url_fopen(&f[i], filename, URL_RDONLY) < 0) {
268
                av_log(s1, AV_LOG_ERROR, "Could not open file : %s\n",filename);
268 269
                return AVERROR(EIO);
270
            }
269 271
            size[i]= url_fsize(f[i]);
270 272

  
271 273
            if(codec->codec_id != CODEC_ID_RAWVIDEO)
......
340 342
                                  img->path, img->img_number) < 0 && img->img_number>1)
341 343
            return AVERROR(EIO);
342 344
        for(i=0; i<3; i++){
343
            if (url_fopen(&pb[i], filename, URL_WRONLY) < 0)
345
            if (url_fopen(&pb[i], filename, URL_WRONLY) < 0) {
346
                av_log(s, AV_LOG_ERROR, "Could not open file : %s\n",filename);
344 347
                return AVERROR(EIO);
348
            }
345 349

  
346 350
            if(codec->codec_id != CODEC_ID_RAWVIDEO)
347 351
                break;

Also available in: Unified diff