avcodec/mjpegdec: Check for end of bitstream in ljpeg_decode_rgb_scan()