From 08272d54288bc2d65950c816ec71866b748df975 Mon Sep 17 00:00:00 2001 From: Andrey Kiselev Date: Wed, 15 Mar 2006 20:56:40 +0000 Subject: [PATCH] Do not cleanup codec state in TIFFInitJPEG(). As per bug http://bugzilla.remotesensing.org/show_bug.cgi?id=1119 --- libtiff/tif_jpeg.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libtiff/tif_jpeg.c b/libtiff/tif_jpeg.c index 88e02971..23507564 100644 --- a/libtiff/tif_jpeg.c +++ b/libtiff/tif_jpeg.c @@ -1,4 +1,4 @@ -/* $Id: tif_jpeg.c,v 1.43 2006-03-07 11:59:12 dron Exp $ */ +/* $Id: tif_jpeg.c,v 1.44 2006-03-15 20:56:40 dron Exp $ */ /* * Copyright (c) 1994-1997 Sam Leffler @@ -1850,9 +1850,6 @@ TIFFInitJPEG(TIFF* tif, int scheme) assert(scheme == COMPRESSION_JPEG); - if ((tif->tif_flags & TIFF_CODERSETUP) == 0) - JPEGCleanup(tif); - /* * Allocate state block so tag methods have storage to record values. */