[libpng15] Enable png_set_check_for_invalid_index() for both read and write.

This commit is contained in:
Glenn Randers-Pehrson
2012-04-13 12:00:45 -05:00
parent b57e9b747f
commit 8b8e9bfb29
3 changed files with 17 additions and 5 deletions

View File

@@ -1291,8 +1291,10 @@ png_set_benign_errors(png_structp png_ptr, int allowed)
}
#endif /* PNG_BENIGN_ERRORS_SUPPORTED */
#ifdef PNG_READ_CHECK_FOR_INVALID_INDEX_SUPPORTED
/* Do not report invalid palette index; added at libng-1.5.10 */
#ifdef PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED
/* Whether to report invalid palette index; added at libng-1.5.10
* allowed - one of 0: disable; 1: enable
*/
void PNGAPI
png_set_check_for_invalid_index(png_structp png_ptr, int allowed)
{