libtiff: * libtiff/tif_jpeg.c: fix use of clumplines calculation

https://github.com/libsdl-org/libtiff/commit/d740ff316aa3089d170c1c682848ff9f104adbcf

From d740ff316aa3089d170c1c682848ff9f104adbcf Mon Sep 17 00:00:00 2001
From: Lee Howard <[EMAIL REDACTED]>
Date: Sun, 12 Dec 2010 01:57:24 +0000
Subject: [PATCH]         * libtiff/tif_jpeg.c: fix use of clumplines
 calculation         http://bugzilla.maptools.org/show_bug.cgi?id=2149

---
 ChangeLog          | 5 +++++
 libtiff/tif_jpeg.c | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e6a404b8..f3d908da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-11  Lee Howard <faxguy@howardsilvan.com>
+
+	* libtiff/tif_jpeg.c: fix use of clumplines calculation
+	http://bugzilla.maptools.org/show_bug.cgi?id=2149
+
 2010-12-11  Lee Howard <faxguy@howardsilvan.com>
 
 	* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()
diff --git a/libtiff/tif_jpeg.c b/libtiff/tif_jpeg.c
index c5d07c06..69691f98 100644
--- a/libtiff/tif_jpeg.c
+++ b/libtiff/tif_jpeg.c
@@ -1,4 +1,4 @@
-/* $Id: tif_jpeg.c,v 1.50.2.13 2010-12-08 00:47:52 faxguy Exp $ */
+/* $Id: tif_jpeg.c,v 1.50.2.14 2010-12-12 01:57:24 faxguy Exp $ */
 
 /*
  * Copyright (c) 1994-1997 Sam Leffler
@@ -1529,7 +1529,7 @@ JPEGEncodeRaw(TIFF* tif, tidata_t buf, tsize_t cc, tsample_t s)
 			sp->scancount = 0;
 		}
 		tif->tif_row += sp->v_sampling;
-		buf += sp->bytesperline;
+		buf += bytesperclumpline;
 		nrows -= sp->v_sampling;
 	}
 	return (1);