--- ray/src/px/panim.c 1990/11/07 13:10:30 1.7 +++ ray/src/px/panim.c 2003/02/22 02:07:27 2.2 @@ -1,9 +1,6 @@ -/* Copyright (c) 1988 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: panim.c,v 2.2 2003/02/22 02:07:27 greg Exp $"; #endif - /* * Send pictures to PC animation system. * @@ -103,6 +100,11 @@ char *file; } /* get dimensions */ getheader(fp, NULL); + if (checkheader(fp, COLRFMT, NULL) < 0) { + fputs(file, stderr); + fputs(": not a Radiance picture\n", stderr); + exit(1); + } if (fgetresolu(&xres, &yres, fp) != (YMAJOR|YDECR) || xres > SCANLINE || yres > NUMSCANS) { fputs(file, stderr);