The way of codecs checking in TIFFRGBAImageOK changed. Now it has used

tif->tif_decodestatus and tif->tif_encodestatus.
This commit is contained in:
Andrey Kiselev 2002-04-08 15:36:03 +00:00
parent 77c65d09d3
commit 88101ad83f

View File

@ -1,4 +1,4 @@
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_getimage.c,v 1.19 2002-03-26 10:35:27 dron Exp $ */
/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_getimage.c,v 1.20 2002-04-08 15:36:03 dron Exp $ */
/*
* Copyright (c) 1991-1997 Sam Leffler
@ -55,7 +55,7 @@ TIFFRGBAImageOK(TIFF* tif, char emsg[1024])
uint16 photometric;
int colorchannels;
if (!(*tif->tif_setupdecode)(tif)) {
if (!tif->tif_decodestatus) {
sprintf(emsg, "Sorry, requested compression method is not configured");
return (0);
}