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

http://bugzilla.maptools.org/show_bug.cgi?id=2149
This commit is contained in:
Lee Howard 2010-12-12 01:55:00 +00:00
parent 448c6db138
commit 6972648b60
2 changed files with 7 additions and 2 deletions

View File

@ -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> 2010-12-11 Lee Howard <faxguy@howardsilvan.com>
* tools/fax2ps.c: replace unsafe tmpfile() with mkstemp() * tools/fax2ps.c: replace unsafe tmpfile() with mkstemp()

View File

@ -1,4 +1,4 @@
/* $Id: tif_jpeg.c,v 1.94 2010-12-06 20:52:54 faxguy Exp $ */ /* $Id: tif_jpeg.c,v 1.95 2010-12-12 01:55:00 faxguy Exp $ */
/* /*
* Copyright (c) 1994-1997 Sam Leffler * Copyright (c) 1994-1997 Sam Leffler
@ -1909,7 +1909,7 @@ JPEGEncodeRaw(TIFF* tif, uint8* buf, tmsize_t cc, uint16 s)
sp->scancount = 0; sp->scancount = 0;
} }
tif->tif_row += sp->v_sampling; tif->tif_row += sp->v_sampling;
buf += sp->bytesperline; buf += bytesperclumpline;
nrows -= sp->v_sampling; nrows -= sp->v_sampling;
} }
return (1); return (1);