Traneptora / jxlatte

Java JPEG XL decoder
MIT License
45 stars 5 forks source link

patches-lossless.jxl sample fails to decode. #4

Closed hYdos closed 1 year ago

hYdos commented 1 year ago

Trying to decode the patches-lossless.jxl file provided in the samples folder fails.

Command Run: java -jar ... samples/patches-lossless.jxl ants.png

Result:

jxlatte: BUG: Index 3 out of bounds for length 1

java.lang.ArrayIndexOutOfBoundsException: Index 3 out of bounds for length 1
    at com.thebombzen.jxlatte.bundle.ImageHeader.getExtraChannelInfo(ImageHeader.java:327)
    at com.thebombzen.jxlatte.frame.Frame.decodeFrame(Frame.java:468)
    at com.thebombzen.jxlatte.JXLCodestreamDecoder.decode(JXLCodestreamDecoder.java:375)
    at com.thebombzen.jxlatte.JXLCodestreamDecoder.decode(JXLCodestreamDecoder.java:319)
    at com.thebombzen.jxlatte.JXLDecoder.decode(JXLDecoder.java:36)
    at com.thebombzen.jxlatte.JXLatte.writeImage(JXLatte.java:238)
    at com.thebombzen.jxlatte.JXLatte.main(JXLatte.java:303)