Revision 77df894a

View differences:

libavformat/img2.c
343 343

  
344 344
    if (!img->is_pipe) {
345 345
        if (av_get_frame_filename(filename, sizeof(filename),
346
                                  img->path, img->img_number) < 0 && img->img_number>1)
346
                                  img->path, img->img_number) < 0 && img->img_number>1) {
347
            av_log(s, AV_LOG_ERROR, "Could not get frame filename from pattern\n");
347 348
            return AVERROR(EIO);
349
        }
348 350
        for(i=0; i<3; i++){
349 351
            if (url_fopen(&pb[i], filename, URL_WRONLY) < 0) {
350 352
                av_log(s, AV_LOG_ERROR, "Could not open file : %s\n",filename);

Also available in: Unified diff