image_load_increment(): Fixed bug when image width was not a multiple of 4

1999-10-29  Michael Fulbright  <drmike@redhat.com>

        * src/io-jpeg.c: image_load_increment(): Fixed bug when
        image width was not a multiple of 4 - always use the
        gdk_pixbuf rowstride to increment pointers!
This commit is contained in:
Michael Fulbright 1999-10-29 22:43:51 +00:00 committed by Michael Fulbright
parent a4a876d70e
commit 05505d6a1d

View File

@ -466,7 +466,7 @@ image_load_increment (gpointer data, guchar *buf, guint size)
rowptr = context->dptr;
for (i=0; i < cinfo->rec_outbuf_height; i++) {
*lptr++ = rowptr;
rowptr += cinfo->image_width * 3;
rowptr += context->pixbuf->art_pixbuf->rowstride;;
}
nlines = jpeg_read_scanlines (cinfo, lines,
@ -478,7 +478,7 @@ image_load_increment (gpointer data, guchar *buf, guint size)
if (cinfo->output_components == 1)
explode_gray_into_buf (cinfo, lines);
context->dptr += nlines * cinfo->image_width * 3;
context->dptr += nlines * context->pixbuf->art_pixbuf->rowstride;
#ifdef DEBUG_JPEG_PROGRESSIVE
if (start_scanline != cinfo->output_scanline)