[devel] Moved an improperly located if-test in png_read_row()
It had been put inside the png_debug2() statement.
This commit is contained in:
parent
3dfe93776f
commit
6d75d0c51f
5
ANNOUNCE
5
ANNOUNCE
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Libpng 1.4.0beta76 - August 21, 2009
|
Libpng 1.4.0beta76 - August 22, 2009
|
||||||
|
|
||||||
This is not intended to be a public release. It will be replaced
|
This is not intended to be a public release. It will be replaced
|
||||||
within a few weeks by a public version or by another test version.
|
within a few weeks by a public version or by another test version.
|
||||||
@ -534,7 +534,8 @@ version 1.4.0beta75 [August 21, 2009]
|
|||||||
Removed an extra png_debug() recently added to png_write_find_filter().
|
Removed an extra png_debug() recently added to png_write_find_filter().
|
||||||
Fixed incorrect #ifdef in pngset.c regarding unknown chunk support.
|
Fixed incorrect #ifdef in pngset.c regarding unknown chunk support.
|
||||||
|
|
||||||
version 1.4.0beta76 [August 21, 2009]
|
version 1.4.0beta76 [August 22, 2009]
|
||||||
|
Moved an incorrectly located test in png_read_row() in pngread.c
|
||||||
|
|
||||||
version 1.4.0betaN [future]
|
version 1.4.0betaN [future]
|
||||||
Build shared libraries with -lz and sometimes -lm.
|
Build shared libraries with -lz and sometimes -lm.
|
||||||
|
3
CHANGES
3
CHANGES
@ -2211,7 +2211,8 @@ version 1.4.0beta75 [August 21, 2009]
|
|||||||
Removed an extra png_debug() recently added to png_write_find_filter().
|
Removed an extra png_debug() recently added to png_write_find_filter().
|
||||||
Fixed incorrect #ifdef in pngset.c regarding unknown chunk support.
|
Fixed incorrect #ifdef in pngset.c regarding unknown chunk support.
|
||||||
|
|
||||||
version 1.4.0beta76 [August 21, 2009]
|
version 1.4.0beta76 [August 22, 2009]
|
||||||
|
Moved an incorrectly located test in png_read_row() in pngread.c
|
||||||
|
|
||||||
version 1.4.0betaN [future]
|
version 1.4.0betaN [future]
|
||||||
Build shared libraries with -lz and sometimes -lm.
|
Build shared libraries with -lz and sometimes -lm.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
/* pngread.c - read a PNG file
|
/* pngread.c - read a PNG file
|
||||||
*
|
*
|
||||||
* Last changed in libpng 1.4.0 [August 21, 2009]
|
* Last changed in libpng 1.4.0 [August 22, 2009]
|
||||||
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
* Copyright (c) 1998-2009 Glenn Randers-Pehrson
|
||||||
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
|
||||||
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
* (Version 0.88 Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.)
|
||||||
@ -455,12 +455,12 @@ png_read_row(png_structp png_ptr, png_bytep row, png_bytep dsp_row)
|
|||||||
#endif
|
#endif
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
png_debug2(1, "in png_read_row (row %lu, pass %d)",
|
|
||||||
|
|
||||||
if (png_ptr == NULL)
|
if (png_ptr == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
png_debug2(1, "in png_read_row (row %lu, pass %d)",
|
||||||
(unsigned long) png_ptr->row_number, png_ptr->pass);
|
(unsigned long) png_ptr->row_number, png_ptr->pass);
|
||||||
|
|
||||||
if (!(png_ptr->flags & PNG_FLAG_ROW_INIT))
|
if (!(png_ptr->flags & PNG_FLAG_ROW_INIT))
|
||||||
png_read_start_row(png_ptr);
|
png_read_start_row(png_ptr);
|
||||||
if (png_ptr->row_number == 0 && png_ptr->pass == 0)
|
if (png_ptr->row_number == 0 && png_ptr->pass == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user