7faf47bc10
http://www.sigmasoft.com/~openbsd/archive/openbsd-ports/200503/msg00090.html From: Bernd Ahlers <b dot ahlers at ba-net dot org>
13 lines
541 B
Plaintext
13 lines
541 B
Plaintext
$OpenBSD: patch-libtiff_tif_jpeg_c,v 1.1 2005/03/27 05:12:15 brad Exp $
|
|
--- libtiff/tif_jpeg.c.orig Sat Mar 26 23:05:00 2005
|
|
+++ libtiff/tif_jpeg.c Sat Mar 26 23:05:52 2005
|
|
@@ -1378,7 +1378,7 @@ JPEGVSetField(TIFF* tif, ttag_t tag, va_
|
|
* Must recalculate cached tile size
|
|
* in case sampling state changed.
|
|
*/
|
|
- tif->tif_tilesize = TIFFTileSize(tif);
|
|
+ tif->tif_tilesize = isTiled(tif) ? TIFFTileSize(tif) : (tsize_t) -1;
|
|
return (1); /* pseudo tag */
|
|
case TIFFTAG_JPEGTABLESMODE:
|
|
sp->jpegtablesmode = va_arg(ap, int);
|