summaryrefslogtreecommitdiff
path: root/pngread.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-01-14 15:47:37 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-01-14 15:47:37 -0600
commite15a96b33312e8a44c510dfdbc8a4d2643d8ba33 (patch)
treeef98d01d3021eb4f930faac493700acb28e2bffa /pngread.c
parent3200e1e0889db7013b72138f022046f041b252c8 (diff)
downloadlibpng-e15a96b33312e8a44c510dfdbc8a4d2643d8ba33.tar.gz
[devel] Fixed a bug in handling of interlaced images (bero at arklinux.org).
Diffstat (limited to 'pngread.c')
-rw-r--r--pngread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pngread.c b/pngread.c
index e092ccefd..056bcbdac 100644
--- a/pngread.c
+++ b/pngread.c
@@ -841,7 +841,7 @@ png_read_image(png_structp png_ptr, png_bytepp image)
}
else
{
- if (!(png_ptr->transformations & PNG_INTERLACE))
+ if (png_ptr->interlaced && !(png_ptr->transformations & PNG_INTERLACE))
{
/* Caller called png_start_read_image or png_read_update_info without
* first turning on the PNG_INTERLACE transform. We can fix this here,