summaryrefslogtreecommitdiff
path: root/graphics/tiff/patches/patch-ah
blob: 489e8f428852736998c865d9f9d9e482e202e1cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ah,v 1.4 2005/01/17 08:37:31 jlam Exp $

--- libtiff/tif_getimage.c.orig	2004-12-20 14:29:27.000000000 -0500
+++ libtiff/tif_getimage.c
@@ -247,7 +247,7 @@ TIFFRGBAImageBegin(TIFFRGBAImage* img, T
     TIFFGetFieldDefaulted(tif, TIFFTAG_SAMPLESPERPIXEL, &img->samplesperpixel);
     TIFFGetFieldDefaulted(tif, TIFFTAG_EXTRASAMPLES,
 	&extrasamples, &sampleinfo);
-    if (extrasamples > 1)
+    if (extrasamples >= 1)
     {
 	switch (sampleinfo[0]) {
 	case EXTRASAMPLE_UNSPECIFIED:	/* Workaround for some images without */