Add a patch to fix libtiff 3.6.1 with HylaFAX.
http://bugs.hylafax.org/bugzilla/show_bug.cgi?id=500 http://bugzilla.remotesensing.org/show_bug.cgi?id=483 Thanks to Uwe Dippel <udippel at uniten dot edu dot my> for bringing this to my attention.
This commit is contained in:
parent
1fbff106fd
commit
0b0e7ff81a
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.28 2004/02/25 00:08:10 brad Exp $
|
||||
# $OpenBSD: Makefile,v 1.29 2004/05/18 23:35:35 brad Exp $
|
||||
|
||||
COMMENT= "tools and library routines for working with TIFF images"
|
||||
|
||||
VERSION= 3.6.1
|
||||
DISTNAME= tiff-v${VERSION}
|
||||
PKGNAME= tiff-${VERSION}
|
||||
PKGNAME= tiff-${VERSION}p1
|
||||
CATEGORIES= graphics
|
||||
|
||||
MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/
|
||||
|
22
graphics/tiff/patches/patch-libtiff_tif_fax3_c
Normal file
22
graphics/tiff/patches/patch-libtiff_tif_fax3_c
Normal file
@ -0,0 +1,22 @@
|
||||
$OpenBSD: patch-libtiff_tif_fax3_c,v 1.3 2004/05/18 23:35:35 brad Exp $
|
||||
--- libtiff/tif_fax3.c.orig 2004-05-18 18:32:41.000000000 -0400
|
||||
+++ libtiff/tif_fax3.c 2004-05-18 18:41:06.000000000 -0400
|
||||
@@ -451,7 +451,7 @@ Fax3SetupState(TIFF* tif)
|
||||
Fax3BaseState* sp = Fax3State(tif);
|
||||
long rowbytes, rowpixels;
|
||||
int needsRefLine;
|
||||
- Fax3CodecState* dsp = DecoderState(tif);
|
||||
+ Fax3CodecState* dsp = (Fax3CodecState*) DecoderState(tif);
|
||||
uint32 nruns;
|
||||
|
||||
if (td->td_bitspersample != 1) {
|
||||
@@ -1284,7 +1284,8 @@ InitCCITTFax3(TIFF* tif)
|
||||
sp->recvparams = 0;
|
||||
sp->subaddress = NULL;
|
||||
|
||||
- tif->tif_flags |= TIFF_NOBITREV; /* decoder does bit reversal */
|
||||
+ if (sp->rw_mode == O_RDONLY) /* FIXME: improve for in place update */
|
||||
+ tif->tif_flags |= TIFF_NOBITREV; /* decoder does bit reversal */
|
||||
DecoderState(tif)->runs = NULL;
|
||||
TIFFSetField(tif, TIFFTAG_FAXFILLFUNC, _TIFFFax3fillruns);
|
||||
EncoderState(tif)->refline = NULL;
|
Loading…
Reference in New Issue
Block a user