Skip to content

Commit

Permalink
From SUSE SRPM:
Browse files Browse the repository at this point in the history
- fixed crash while using libjpeg7 and higher
  * dont-fancy-upsampling.patch
  • Loading branch information
redder86 committed Dec 6, 2010
1 parent 0200016 commit 4b50a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4b50a97

Please sign in to comment.