Merge pull request #821 from lovell/png-start-read

libvips v8.6.0-beta: ensure interlaced PNG input works with libpng16
This commit is contained in:
John Cupitt 2017-12-05 08:26:29 +00:00 committed by GitHub
commit baab520c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,11 +484,6 @@ png2vips_interlace( Read *read, VipsImage *out )
for( y = 0; y < out->Ysize; y++ )
read->row_pointer[y] = VIPS_IMAGE_ADDR( out, 0, y );
/* With some libpng you get a warning unless you call this, even though
* it's unnecessary.
*/
png_set_interlace_handling( read->pPng );
png_read_image( read->pPng, read->row_pointer );
png_read_end( read->pPng, NULL );