
Originally Posted by
thorfdbg
Just a quick warning: I'm currently doing the JPEG compliance tests using 10918-2 (ITU-T.83) and found that the IJG implementation of the arithmetic coding option defined in 10918-1 is actually non-conforming. The problem here is that the probability contexts need to be additionally conditioned on the component index in the scan, but IJG uses unconditioned contexts. I have fixed this in the upcoming new revision of libjpeg (NIJG - not the IJG code). For the time being, avoid the AC coding option.