- add patch for transparent tiff images
http://bugzilla.remotesensing.org/show_bug.cgi?id=718 Submitted by: Dierk Sacher Approved by: portmgr (krion)
This commit is contained in:
parent
b3137d9b0e
commit
eba570b1a0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=125716
@ -9,6 +9,7 @@
|
||||
|
||||
PORTNAME= tiff
|
||||
PORTVERSION= 3.7.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/ \
|
||||
http://dl1.maptools.org/dl/libtiff/
|
||||
|
12
graphics/tiff/files/patch-tif_getimage.c
Normal file
12
graphics/tiff/files/patch-tif_getimage.c
Normal file
@ -0,0 +1,12 @@
|
||||
diff -u -p -r1.43 libtiff/tif_getimage.c
|
||||
--- libtiff/tif_getimage.c 19 Dec 2004 17:11:17 -0000 1.43
|
||||
+++ libtiff/tif_getimage.c 24 Dec 2004 09:30:18 -0000
|
||||
@@ -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 */
|
Loading…
Reference in New Issue
Block a user