# | 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); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |