Skip to content

Commit 6a53ab4

Browse files
committed
allow container jxl as well
We were not testing the jxl signature for the two types of jxl. see jcupitt/vipsdisp#5 thanks Fraetor
1 parent 08742ec commit 6a53ab4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libvips/foreign/jxlload.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ vips_foreign_load_jxl_is_a_source( VipsSource *source )
185185
JxlSignature sig;
186186

187187
return( (p = vips_source_sniff( source, 12 )) &&
188-
(sig = JxlSignatureCheck( p, 12 )) == JXL_SIG_CODESTREAM );
188+
(sig = JxlSignatureCheck( p, 12 )) != JXL_SIG_INVALID &&
189+
sig != JXL_SIG_NOT_ENOUGH_BYTES );
189190
}
190191

191192
static VipsForeignFlags

0 commit comments

Comments
 (0)