ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/oki20c.c
(Generate patch)

Comparing ray/src/px/oki20c.c (file contents):
Revision 1.9 by greg, Tue Jul 10 09:07:48 1990 UTC vs.
Revision 1.10 by greg, Thu Apr 18 14:35:11 1991 UTC

# Line 64 | Line 64 | char  *fname;
64                  return(-1);
65          }
66                                  /* discard header */
67 <        getheader(input, NULL);
67 >        if (checkheader(input, COLRFMT, NULL) < 0) {
68 >                fprintf(stderr, "%s: not a Radiance picture\n", fname);
69 >                return(-1);
70 >        }
71                                  /* get picture dimensions */
72          if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
73                  fprintf(stderr, "%s: bad picture size\n", fname);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines