summaryrefslogtreecommitdiff
path: root/src/libtiff/tif_ojpeg.c
diff options
context:
space:
mode:
authorscuri <scuri>2009-12-11 15:17:41 +0000
committerscuri <scuri>2009-12-11 15:17:41 +0000
commitbfaf1f4433372b13eb1b50c3be2c27c547cd9af5 (patch)
tree62502696239a70c3573c86f8dde426acbabe7409 /src/libtiff/tif_ojpeg.c
parent6e1595f84fdc0b9e7cc3d620ce8f2ca707f6e3fd (diff)
*** empty log message ***
Diffstat (limited to 'src/libtiff/tif_ojpeg.c')
-rw-r--r--src/libtiff/tif_ojpeg.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libtiff/tif_ojpeg.c b/src/libtiff/tif_ojpeg.c
index f9f0508..0c876cd 100644
--- a/src/libtiff/tif_ojpeg.c
+++ b/src/libtiff/tif_ojpeg.c
@@ -1,4 +1,4 @@
-/* $Id: tif_ojpeg.c,v 1.2 2009/08/21 04:01:59 scuri Exp $ */
+/* $Id: tif_ojpeg.c,v 1.3 2009/12/11 15:17:41 scuri Exp $ */
/* WARNING: The type of JPEG encapsulation defined by the TIFF Version 6.0
specification is now totally obsolete and deprecated for new applications and
@@ -1127,6 +1127,9 @@ OJPEGWriteHeaderInfo(TIFF* tif)
if ((sp->subsampling_force_desubsampling_inside_decompression==0) && (sp->samples_per_pixel_per_plane>1))
{
sp->libjpeg_jpeg_decompress_struct.raw_data_out=1;
+#if JPEG_LIB_VERSION >= 70
+ sp->libjpeg_jpeg_decompress_struct.do_fancy_upsampling=FALSE;
+#endif
sp->libjpeg_jpeg_query_style=0;
if (sp->subsampling_convert_log==0)
{
@@ -2359,7 +2362,7 @@ OJPEGLibjpegJpegErrorMgrOutputMessage(jpeg_common_struct* cinfo)
{
char buffer[JMSG_LENGTH_MAX];
(*cinfo->err->format_message)(cinfo,buffer);
- TIFFWarningExt(((TIFF*)(cinfo->client_data))->tif_clientdata,"LibJpeg",buffer);
+ TIFFWarningExt(((TIFF*)(cinfo->client_data))->tif_clientdata,"LibJpeg", "%s", buffer);
}
static void
@@ -2367,7 +2370,7 @@ OJPEGLibjpegJpegErrorMgrErrorExit(jpeg_common_struct* cinfo)
{
char buffer[JMSG_LENGTH_MAX];
(*cinfo->err->format_message)(cinfo,buffer);
- TIFFErrorExt(((TIFF*)(cinfo->client_data))->tif_clientdata,"LibJpeg",buffer);
+ TIFFErrorExt(((TIFF*)(cinfo->client_data))->tif_clientdata,"LibJpeg", "%s", buffer);
jpeg_encap_unwind((TIFF*)(cinfo->client_data));
}