[libng16] Reverted recent change that eliminated a warning about storing

an unhandled chunk.
This commit is contained in:
Glenn Randers-Pehrson 2013-03-02 16:03:45 -06:00
parent 871b1d0fab
commit 4ea113b7f0
3 changed files with 1 additions and 5 deletions

View File

@ -66,8 +66,6 @@ Version 1.6.1beta04 [February 27, 2013]
Version 1.6.1beta05 [March 2, 2013]
Avoid a possible memory leak in contrib/gregbook/readpng.c
Fixed bug introduced in libpng-1.6.0beta28 that causes libpng to handle chunks
even when they have been tagged PNG_HANDLE_CHUNK_NEVER.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -4423,8 +4423,6 @@ Version 1.6.1beta04 [February 27, 2013]
Version 1.6.1beta05 [March 2, 2013]
Avoid a possible memory leak in contrib/gregbook/readpng.c
Fixed bug introduced in libpng-1.6.0beta28 that causes libpng to handle chunks
even when they have been tagged PNG_HANDLE_CHUNK_NEVER.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit

View File

@ -2813,7 +2813,7 @@ png_handle_unknown(png_structrp png_ptr, png_inforp info_ptr,
* the application has not set specific save or ignore for this
* chunk or global save or ignore.
*/
if (keep < PNG_HANDLE_CHUNK_NEVER)
if (keep < PNG_HANDLE_CHUNK_IF_SAFE)
{
# ifdef PNG_SET_UNKNOWN_CHUNKS_SUPPORTED
if (png_ptr->unknown_default < PNG_HANDLE_CHUNK_IF_SAFE)