allow container jxl as well

We were not testing the jxl signature for the two types of jxl.

see https://github.com/jcupitt/vipsdisp/issues/5

thanks Fraetor
This commit is contained in:
John Cupitt 2021-10-01 06:53:37 +01:00
parent 08742ec304
commit 6a53ab47e1

View File

@ -185,7 +185,8 @@ vips_foreign_load_jxl_is_a_source( VipsSource *source )
JxlSignature sig;
return( (p = vips_source_sniff( source, 12 )) &&
(sig = JxlSignatureCheck( p, 12 )) == JXL_SIG_CODESTREAM );
(sig = JxlSignatureCheck( p, 12 )) != JXL_SIG_INVALID &&
sig != JXL_SIG_NOT_ENOUGH_BYTES );
}
static VipsForeignFlags