This fixes grayscale JPEG-LS decoding. Originally committed as revision 6306 to svn://svn.ffmpeg.org/ffmpeg/trunk