From 9221fae973c71f0175b8b8a1b1f44e674a343348 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 29 Jul 2021 13:19:11 +0100 Subject: [PATCH] remove some stray dbg code accidentally committed previously --- libvips/foreign/jxlload.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libvips/foreign/jxlload.c b/libvips/foreign/jxlload.c index 0ee7623c..a50fdbd4 100644 --- a/libvips/foreign/jxlload.c +++ b/libvips/foreign/jxlload.c @@ -32,9 +32,9 @@ */ /* - */ #define DEBUG_VERBOSE #define DEBUG + */ #ifdef HAVE_CONFIG_H #include @@ -379,10 +379,8 @@ vips_foreign_load_jxl_process( VipsForeignLoadJxl *jxl ) size_t bytes_remaining; bytes_remaining = JxlDecoderReleaseInput( jxl->decoder ); - if( vips_foreign_load_jxl_fill_input( jxl, bytes_remaining ) ) { - printf( "vips_foreign_load_jxl_process: EOF\n" ); + if( vips_foreign_load_jxl_fill_input( jxl, bytes_remaining ) ) return( JXL_DEC_ERROR ); - } JxlDecoderSetInput( jxl->decoder, jxl->input_buffer, jxl->bytes_in_buffer ); @@ -565,8 +563,7 @@ vips_foreign_load_jxl_header( VipsForeignLoad *load ) break; case JXL_DEC_COLOR_ENCODING: - if( JXL_DEC_SUCCESS != JxlDecoderGetICCProfileSize( - jxl->decoder, + if( JxlDecoderGetICCProfileSize( jxl->decoder, &jxl->format, JXL_COLOR_PROFILE_TARGET_DATA, &jxl->icc_size ) ) { @@ -583,8 +580,7 @@ vips_foreign_load_jxl_header( VipsForeignLoad *load ) jxl->icc_size )) ) return( -1 ); - if( JXL_DEC_SUCCESS != JxlDecoderGetColorAsICCProfile( - jxl->decoder, + if( JxlDecoderGetColorAsICCProfile( jxl->decoder, &jxl->format, JXL_COLOR_PROFILE_TARGET_DATA, jxl->icc_data, jxl->icc_size ) ) {