oops logic mixup
Kleis pointed out a suprious return in png load minimise. see https://github.com/libvips/libvips/issues/1370#issuecomment-513706480
This commit is contained in:
parent
7f3174c3e5
commit
28090d614f
@ -203,9 +203,9 @@ read_minimise_cb( VipsImage *out, Read *read )
|
|||||||
* file.
|
* file.
|
||||||
*/
|
*/
|
||||||
if( read->pPng ) {
|
if( read->pPng ) {
|
||||||
if( setjmp( png_jmpbuf( read->pPng ) ) )
|
/* Catch and ignore error returns from png_read_end().
|
||||||
return;
|
*/
|
||||||
|
if( !setjmp( png_jmpbuf( read->pPng ) ) )
|
||||||
png_read_end( read->pPng, NULL );
|
png_read_end( read->pPng, NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user