From: Lasse Collin Date: Tue, 22 Jan 2008 19:16:22 +0000 (+0200) Subject: Fix Multi-Block Stream encoder's EOPM usage. X-Git-Tag: upstream/5.1.3~812 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1747b85a43abc1c3f152dbd349be2ef4089ecf6a;p=platform%2Fupstream%2Fxz.git Fix Multi-Block Stream encoder's EOPM usage. --- diff --git a/src/liblzma/common/stream_encoder_multi.c b/src/liblzma/common/stream_encoder_multi.c index 5a517ff..f37b56a 100644 --- a/src/liblzma/common/stream_encoder_multi.c +++ b/src/liblzma/common/stream_encoder_multi.c @@ -79,7 +79,7 @@ block_header_encode(lzma_coder *coder, lzma_allocator *allocator, coder->block_options = (lzma_options_block){ .check = coder->stream_options->check, .has_crc32 = coder->stream_options->has_crc32, - .has_eopm = true, + .has_eopm = uncompressed_size == LZMA_VLI_VALUE_UNKNOWN, .is_metadata = type != BLOCK_DATA, .has_uncompressed_size_in_footer = false, .has_backward_size = type == BLOCK_FOOTER_METADATA,