aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-01-22 21:16:22 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-01-22 21:16:22 +0200
commit1747b85a43abc1c3f152dbd349be2ef4089ecf6a (patch)
treefc63be469d014ed4b2e8b1b2bfe5b6182512cac5 /src/liblzma
parentMade lzma_extra pointers const in lzma_options_stream. (diff)
downloadxz-1747b85a43abc1c3f152dbd349be2ef4089ecf6a.tar.xz
Fix Multi-Block Stream encoder's EOPM usage.
Diffstat (limited to 'src/liblzma')
-rw-r--r--src/liblzma/common/stream_encoder_multi.c2
1 files changed, 1 insertions, 1 deletions
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,