https://github.com/libsdl-org/libtiff/commit/4b50a9740fb13a914d69fc2cb49ee29bd4105ec6
From 4b50a9740fb13a914d69fc2cb49ee29bd4105ec6 Mon Sep 17 00:00:00 2001
From: Lee Howard <[EMAIL REDACTED]>
Date: Mon, 6 Dec 2010 18:05:36 +0000
Subject: [PATCH] From SUSE SRPM:
- fixed crash while using libjpeg7 and higher
* dont-fancy-upsampling.patch
---
libtiff/tif_jpeg.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libtiff/tif_jpeg.c b/libtiff/tif_jpeg.c
index e044b801..98127257 100644
--- a/libtiff/tif_jpeg.c
+++ b/libtiff/tif_jpeg.c
@@ -1,4 +1,4 @@
-/* $Id: tif_jpeg.c,v 1.50.2.10 2010-06-21 19:18:06 bfriesen Exp $ */
+/* $Id: tif_jpeg.c,v 1.50.2.11 2010-12-06 18:05:36 faxguy Exp $ */
/*
* Copyright (c) 1994-1997 Sam Leffler
@@ -850,6 +850,7 @@ JPEGPreDecode(TIFF* tif, tsample_t s)
if (downsampled_output) {
/* Need to use raw-data interface to libjpeg */
sp->cinfo.d.raw_data_out = TRUE;
+ sp->cinfo.d.do_fancy_upsampling = FALSE;
tif->tif_decoderow = JPEGDecodeRaw;
tif->tif_decodestrip = JPEGDecodeRaw;
tif->tif_decodetile = JPEGDecodeRaw;