aboutsummaryrefslogtreecommitdiff
path: root/graphics/tiff/files
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2019-06-06 20:02:19 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2019-06-06 20:02:19 +0000
commit0c4b0425b2836cafadba9e71eee2cacaf2e9c9ff (patch)
tree10b2241e2cb2c3c08f5a688f337ff6b6342b24a5 /graphics/tiff/files
parentb797b89d4fa56aa43b9a84e1570734d30c381d26 (diff)
downloadports-0c4b0425b2836cafadba9e71eee2cacaf2e9c9ff.tar.gz
ports-0c4b0425b2836cafadba9e71eee2cacaf2e9c9ff.zip
Notes
Diffstat (limited to 'graphics/tiff/files')
-rw-r--r--graphics/tiff/files/patch-tools_tiff2ps.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/tiff/files/patch-tools_tiff2ps.c b/graphics/tiff/files/patch-tools_tiff2ps.c
new file mode 100644
index 000000000000..1a3645d65586
--- /dev/null
+++ b/graphics/tiff/files/patch-tools_tiff2ps.c
@@ -0,0 +1,16 @@
+Fix tiff2ps error regarding "Inconsistent value of es" by allowing es to be zero.
+
+--- tools/tiff2ps.c.orig 2018-11-03 19:25:46 UTC
++++ tools/tiff2ps.c
+@@ -2444,9 +2444,9 @@ PSDataColorContig(FILE* fd, TIFF* tif, u
+ unsigned char *cp, c;
+
+ (void) w;
+- if( es <= 0 )
++ if( es < 0 )
+ {
+- TIFFError(filename, "Inconsistent value of es: %d", es);
++ TIFFError(filename, "Inconsistent value of es: %d (samplesperpixel=%u, nc=%d)", es, samplesperpixel, nc);
+ return;
+ }
+ tf_buf = (unsigned char *) _TIFFmalloc(tf_bytesperrow);