# | Line 48 | Line 48 | char *fname; | |
---|---|---|
48 | return(-1); | |
49 | } | |
50 | /* discard header */ | |
51 | < | getheader(input, NULL); |
51 | > | if (checkheader(input, COLRFMT, NULL) < 0) { |
52 | > | fprintf(stderr, "%s: not a Radiance picture\n", fname); |
53 | > | return(-1); |
54 | > | } |
55 | /* get picture dimensions */ | |
56 | if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) { | |
57 | fprintf(stderr, "%s: bad picture size\n", fname); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |