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:
parent
08742ec304
commit
6a53ab47e1
@ -185,7 +185,8 @@ vips_foreign_load_jxl_is_a_source( VipsSource *source )
|
|||||||
JxlSignature sig;
|
JxlSignature sig;
|
||||||
|
|
||||||
return( (p = vips_source_sniff( source, 12 )) &&
|
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
|
static VipsForeignFlags
|
||||||
|
Loading…
Reference in New Issue
Block a user