This project is read-only.


JlsException in MakeValid() under decoderstrategy.h


Hi All,

First of all I am new to this code, so please pardon me if I am asking some silly query here.

I am getting "_validBits" as 0 in the MakeValid() method under decoderstrategy.h file and this is made as 0 in the "Skip(LONG length)" method, and this is happening only for few images. I would like to understand the reasons behind this behaviour.

Kindly help me get some idea about this and to proceed further on my investigation.

Ramana Mohan
Closed May 28, 2016 at 12:47 AM by vbaderks
Closing the issue here, as charls is maintained on github.


vbaderks wrote Dec 8, 2015 at 7:13 PM

Hi Ramana,

This project has been moved to github ( Can you re-open the issue there and also attach the images that have this problem?

How did you generate these images: with charls or with another JPEG-LS codec?

Thanks, Victor

ramanamohan wrote Dec 17, 2015 at 8:41 AM

Hi Victor,

I have posted an issue in github (, but no response yet. Can you please let me know if I have posted in the appropriate forum.

Yes the images were generated using same charls.
I will attach the images into github forum, once you confirm my post.

Ramana Mohan