avcodec/mjpegdec: Check remaining bitstream in ljpeg_decode_yuv_scan()