PicTools Apollo program have an "Cleared Least Significant Bits" option which can be set to 0-7 while saving jpegls file.
ffmpeg decodes incorrectly files when the value is set to 1, 2 and 3 (0, 4, 5, 6, 7 decodes ok)
C:\>ffmpeg -i PicTools_Apollo(Cleared Least Significant Bits 1).jls out.bmp
ffmpeg version N-37208-g01fcbdf Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 27 2012 18:34:52 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, image2, from 'PicTools_Apollo(Cleared Least Significant Bits 1).jls':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0:0: Video: jpegls, rgb24, 1025x769, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'rgb24' for codec 'bmp', auto-selecting format 'bgr24'
[buffer @ 021518A0] w:1025 h:769 pixfmt:rgb24 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 02151B20] auto-inserting filter 'auto-inserted scale 0' between th
e filter 'src' and the filter 'out'
[scale @ 02151F60] w:1025 h:769 fmt:rgb24 -> w:1025 h:769 fmt:bgr24 flags:0x4
Output #0, image2, to 'out.bmp':
Metadata:
encoder : Lavf53.31.100
Stream #0:0: Video: bmp, bgr24, 1025x769, q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0:0 -> #0:0 (jpegls -> bmp)
Press [q] to stop, [?] for help
frame= 1 fps= 0 q=0.0 Lsize= 0kB time=00:00:00.04 bitrate= 0.0kbits/
s
video:2310kB audio:0kB global headers:0kB muxing overhead -100.000000%