Fix in StribByteCount guessing code.

This commit is contained in:
Andrey Kiselev 2005-12-22 07:13:36 +00:00
parent f5ebfca202
commit d04435ec09

View File

@ -1,4 +1,4 @@
/* $Id: tif_dirread.c,v 1.69 2005-12-21 12:23:13 joris Exp $ */ /* $Id: tif_dirread.c,v 1.70 2005-12-22 07:13:36 dron Exp $ */
/* /*
* Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1988-1997 Sam Leffler
@ -586,7 +586,7 @@ TIFFReadDirectory(TIFF* tif)
_TIFFFieldWithTag(tif,TIFFTAG_STRIPBYTECOUNTS)->field_name); _TIFFFieldWithTag(tif,TIFFTAG_STRIPBYTECOUNTS)->field_name);
if(EstimateStripByteCounts(tif, dir, dircount) < 0) if(EstimateStripByteCounts(tif, dir, dircount) < 0)
goto bad; goto bad;
} else if (td->td_nstrips > 1 } else if (td->td_nstrips > 2
&& td->td_compression == COMPRESSION_NONE && td->td_compression == COMPRESSION_NONE
&& td->td_stripbytecount[0] != td->td_stripbytecount[1]) { && td->td_stripbytecount[0] != td->td_stripbytecount[1]) {
/* /*