aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/block_encoder.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2008-01-25Combine lzma_options_block validation needed by both BlockLasse Collin1-26/+6
encoder and decoder, and put the shared things to block_private.h. Improved the checks a little so that they may detect too big Compressed Size at initialization time if lzma_options_block.total_size or .total_limit is known. Allow encoding and decoding Blocks with combinations of fields that are not allowed by the file format specification. Doing this requires that the application passes such a combination in lzma_options_lzma; liblzma doesn't do that, but it's not impossible that someone could find them useful in some custom file format.
2008-01-14Small LZMA_SYNC_FLUSH fixes to Block and Single-Stream encoders.Lasse Collin1-2/+2
2008-01-08Fixed encoding of empty files. Arguments to is_size_valid()Lasse Collin1-1/+1
were in wrong order in block_encoder.c.
2007-12-09Imported to git.Lasse Collin1-0/+375