mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Initialize align_price_count and match_price_count in
lzma_encoder_init.c. While we don't call fill_distances_prices() and fill_align_prices() in lzma_lzma_encoder_init(), we still need to initialize these two variables so that the fill functions get called in lzma_encoder_getoptimum.c in the beginning of a stream.
This commit is contained in:
parent
596fa1fac7
commit
0541c5ea63
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,8 @@ lzma_lzma_encoder_init(lzma_next_coder *next, lzma_allocator *allocator,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Misc FIXME desc
|
// Misc FIXME desc
|
||||||
|
next->coder->align_price_count = 0;
|
||||||
|
next->coder->match_price_count = 0;
|
||||||
next->coder->dictionary_size = options->dictionary_size;
|
next->coder->dictionary_size = options->dictionary_size;
|
||||||
next->coder->pos_mask = (1U << options->pos_bits) - 1;
|
next->coder->pos_mask = (1U << options->pos_bits) - 1;
|
||||||
next->coder->fast_bytes = options->fast_bytes;
|
next->coder->fast_bytes = options->fast_bytes;
|
||||||
|
|
Loading…
Reference in a new issue