diff options
author | Matthias Clasen <mclasen@redhat.com> | 2009-11-05 10:29:34 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-11-05 10:29:34 -0500 |
commit | b5959d885155e76956e13d0182b5a94efda841b2 (patch) | |
tree | 6bd28ddbc7ef4570f81949c018f02d4e2c60ff55 /gdk-pixbuf | |
parent | 5f87d6d24922c1befca638a2dcd7992249fd62a0 (diff) | |
download | gdk-pixbuf-b5959d885155e76956e13d0182b5a94efda841b2.tar.gz |
Fix loading scaled-down jpegs
The assumption that scale_num will be automatically be 1 is no longer
with libjpeg7. So set it explicitly. Bug #588740.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/io-jpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c index 5435f5b25..07308e370 100644 --- a/gdk-pixbuf/io-jpeg.c +++ b/gdk-pixbuf/io-jpeg.c @@ -922,6 +922,7 @@ gdk_pixbuf__jpeg_image_load_increment (gpointer data, } for (cinfo->scale_denom = 2; cinfo->scale_denom <= 8; cinfo->scale_denom *= 2) { + cinfo->scale_num = 1; jpeg_calc_output_dimensions (cinfo); if (cinfo->output_width < width || cinfo->output_height < height) { cinfo->scale_denom /= 2; |