aboutsummaryrefslogtreecommitdiff
path: root/rdgif.c
diff options
context:
space:
mode:
authorThomas G. Lane <tgl@netcom.com>1995-08-02 00:00:00 +0000
committerDRC <information@libjpeg-turbo.org>2015-07-29 15:31:30 -0500
commitbc79e0680a45d1ca330d690dae0340c8e17ab5e3 (patch)
treea72d3996a6a70824338566ef36c2fe8acb00fba0 /rdgif.c
parenta8b67c4fbbfde9b4b4e03f2dea8f4f0b1900fc33 (diff)
downloadlibjpeg-turbo-bc79e0680a45d1ca330d690dae0340c8e17ab5e3.tar.gz
The Independent JPEG Group's JPEG software v6
Diffstat (limited to 'rdgif.c')
-rw-r--r--rdgif.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/rdgif.c b/rdgif.c
index f16fb47c..8ce23830 100644
--- a/rdgif.c
+++ b/rdgif.c
@@ -1,7 +1,7 @@
/*
* rdgif.c
*
- * Copyright (C) 1991-1994, Thomas G. Lane.
+ * Copyright (C) 1991-1995, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -498,7 +498,7 @@ start_input_gif (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
* image is postponed until the first call to get_pixel_rows.
*/
source->interlaced_image = (*cinfo->mem->request_virt_sarray)
- ((j_common_ptr) cinfo, JPOOL_IMAGE,
+ ((j_common_ptr) cinfo, JPOOL_IMAGE, FALSE,
(JDIMENSION) width, (JDIMENSION) height, (JDIMENSION) 1);
if (cinfo->progress != NULL) {
cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress;
@@ -576,7 +576,8 @@ load_interlaced_image (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
(*progress->pub.progress_monitor) ((j_common_ptr) cinfo);
}
image_ptr = (*cinfo->mem->access_virt_sarray)
- ((j_common_ptr) cinfo, source->interlaced_image, row, TRUE);
+ ((j_common_ptr) cinfo, source->interlaced_image,
+ row, (JDIMENSION) 1, TRUE);
sptr = image_ptr[0];
for (col = cinfo->image_width; col > 0; col--) {
*sptr++ = (JSAMPLE) LZWReadByte(source);
@@ -631,7 +632,8 @@ get_interlaced_row (j_compress_ptr cinfo, cjpeg_source_ptr sinfo)
break;
}
image_ptr = (*cinfo->mem->access_virt_sarray)
- ((j_common_ptr) cinfo, source->interlaced_image, irow, FALSE);
+ ((j_common_ptr) cinfo, source->interlaced_image,
+ irow, (JDIMENSION) 1, FALSE);
/* Scan the row, expand colormap, and output */
sptr = image_ptr[0];
ptr = source->pub.buffer[0];