mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Merge branch 'PHP-8.1'
* PHP-8.1: Fixed libpng warning when loading interlaced images
This commit is contained in:
commit
0052af2a67
@ -336,6 +336,11 @@ gdImagePtr gdImageCreateFromPngCtx (gdIOCtx * infile)
|
||||
break;
|
||||
}
|
||||
|
||||
/* enable the interlace transform if supported */
|
||||
#ifdef PNG_READ_INTERLACING_SUPPORTED
|
||||
(void)png_set_interlace_handling(png_ptr);
|
||||
#endif
|
||||
|
||||
png_read_update_info(png_ptr, info_ptr);
|
||||
|
||||
/* allocate space for the PNG image data */
|
||||
|
Loading…
Reference in New Issue
Block a user