[libpng16] PNG_IGNORE_ALDLER32_SUPPORTED -> PNG_IGNORE_ADLER32 in pngtest.c

This commit is contained in:
Glenn Randers-Pehrson 2016-12-26 18:15:02 -06:00
parent dbb5fce3d8
commit 8187ba1518
2 changed files with 2 additions and 4 deletions

View File

@ -4108,9 +4108,7 @@ png_read_IDAT_data(png_structrp png_ptr, png_bytep output,
png_zstream_error(png_ptr, ret); png_zstream_error(png_ptr, ret);
if (output != NULL) if (output != NULL)
{ png_chunk_error(png_ptr, png_ptr->zstream.msg);
png_chunk_error(png_ptr, png_ptr->zstream.msg);
}
else /* checking */ else /* checking */
{ {

View File

@ -989,7 +989,7 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
/* Turn off CRC checking while reading */ /* Turn off CRC checking while reading */
png_set_crc_action(read_ptr, PNG_CRC_QUIET_USE, PNG_CRC_QUIET_USE); png_set_crc_action(read_ptr, PNG_CRC_QUIET_USE, PNG_CRC_QUIET_USE);
#ifdef PNG_IGNORE_ADLER32_SUPPORTED #ifdef PNG_IGNORE_ADLER32
/* Turn off ADLER32 checking while reading */ /* Turn off ADLER32 checking while reading */
png_set_option(read_ptr, PNG_IGNORE_ADLER32, PNG_OPTION_ON); png_set_option(read_ptr, PNG_IGNORE_ADLER32, PNG_OPTION_ON);
#endif #endif