A bit of a fix - don't call lzma_code more than necessary in the read loop.

Still to do buffer wrapping.