# | Line 39 | Line 39 | char *argv[]; | |
---|---|---|
39 | exit(1); | |
40 | } | |
41 | /* discard header */ | |
42 | < | getheader(input, NULL); |
42 | > | if (checkheader(input, COLRFMT, NULL) < 0) { |
43 | > | fprintf(stderr, "%s: not a Radiance picture\n", fname); |
44 | > | exit(1); |
45 | > | } |
46 | /* get picture dimensions */ | |
47 | if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) { | |
48 | fprintf(stderr, "%s: bad picture size\n", fname); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |