0xC0000054/libheif-sharp

Invalid input: No 'meta' box

pol2095 opened this issue · 6 comments

Hello,

libheif return for some pictures, this message error when I read avif :
Invalid input: No 'meta' box

Thanks

libheif return for some pictures, this message error when I read avif :

Could you upload one of the images?

link to the avif image

I created this image on macOS using SDWebImageAVIFCoder
I can open this image using GIMP on Windows

The file does have a 'meta' box, and I can open it in Photoshop.

I do not know why you are getting an error message, it may just be some kind of random glitch.

Can you open this file using libheif-sharp ?
The problem occur with all files created on macOS.
But I can open this file on Linux using libheif.

Can you open this file using libheif-sharp?

No, it fails with the missing 'meta' box error.

I found the issue, my file reading code was validating parameters in the wrong order.
The output data pointer can be null for zero-byte reads.

Great job, it work, thanks.