Samsung NX500 images not decoding properly

I have two images that do not work with LibRaw, though others from this camera decode correctly.

This one:

https://www.dropbox.com/scl/fi/0vdkkqsm3pz9wgekk1wfm/TR-SAM_2907.SRW?rlk...

does not load, returning an IOError

This one loads, but draws incorrectly:

https://www.dropbox.com/scl/fi/ogk03kiii4wiivxj1glvc/TR-SAM_2908.SRW?rlk...

Both load and display properly in FRV, but do not work with the latest source on GitHub. I can reproduce this with my app and also with Affinity Photo.

I attached what the 2908 image looks like when decoded.

Any help is appreciated. Thanks.

-G

AttachmentSize
Image icon SAM_2908-decoded.jpg631.89 KB

Forums: 

Thank you for the samples

Thank you for the samples provided.

We'll consider adding Samsung lossy compression support into some version of public LibRaw.

-- Alex Tutubalin @LibRaw LLC