[libpng17] Corrected the test on user transform changes on read. It was in the

png_set of the transform function, but that doesn't matter unless the
transform function changes the rowbuf size, and that is only valid if
transform_info is called.
This commit is contained in:
John Bowler
2013-04-12 22:10:38 -05:00
committed by Glenn Randers-Pehrson
parent ae1a5c811c
commit 066f9862f0
4 changed files with 20 additions and 6 deletions

View File

@@ -1056,9 +1056,6 @@ png_set_read_user_transform_fn(png_structrp png_ptr, png_user_transform_ptr
{
png_debug(1, "in png_set_read_user_transform_fn");
if (!png_rtran_ok(png_ptr, 0))
return;
#ifdef PNG_READ_USER_TRANSFORM_SUPPORTED
png_ptr->transformations |= PNG_USER_TRANSFORM;
png_ptr->read_user_transform_fn = read_user_transform_fn;