From 1747b85a43abc1c3f152dbd349be2ef4089ecf6a Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 22 Jan 2008 21:16:22 +0200 Subject: Fix Multi-Block Stream encoder's EOPM usage. --- src/liblzma/common/stream_encoder_multi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liblzma/common/stream_encoder_multi.c b/src/liblzma/common/stream_encoder_multi.c index 5a517ff4..f37b56a7 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, -- cgit v1.2.3