diff options
Diffstat (limited to 'src/liblzma/lzma/lzma_encoder_init.c')
-rw-r--r-- | src/liblzma/lzma/lzma_encoder_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/liblzma/lzma/lzma_encoder_init.c b/src/liblzma/lzma/lzma_encoder_init.c index bbe3de7a..0e3fb769 100644 --- a/src/liblzma/lzma/lzma_encoder_init.c +++ b/src/liblzma/lzma/lzma_encoder_init.c @@ -174,10 +174,11 @@ lzma_lzma_encoder_init(lzma_next_coder *next, lzma_allocator *allocator, bittree_reset(next->coder->pos_align_encoder, ALIGN_BITS); // Length encoders - length_encoder_reset(&next->coder->len_encoder, 1U << options->pos_bits, + length_encoder_reset(&next->coder->match_len_encoder, + 1U << options->pos_bits, options->fast_bytes + 1 - MATCH_MIN_LEN); - length_encoder_reset(&next->coder->rep_match_len_encoder, + length_encoder_reset(&next->coder->rep_len_encoder, 1U << options->pos_bits, next->coder->fast_bytes + 1 - MATCH_MIN_LEN); |