32dfae6f98
MT compression generates a single frame. Multi-threading operates by breaking the frames into independent sections. But from a decoder perspective, there is no difference : it's just a suite of blocks. Problem is, decoder preserves repCodes from previous block to start decoding next block. This is also valid between sections, since they are no different than changing block. Previous version would incorrectly initialize repcodes to their default value at the beginning of each section. When using them, there was a mismatch between encoder (default values) and decoder (values from previous block). This change ensures that repcodes won't be used at the beginning of a new section. It works by setting them to 0. This only works with regular (single segment) variants : extDict variants will fail ! Fortunately, sections beyond the 1st one belong to this category. To be checked : btopt strategy. This change was only validated from fast to btlazy2 strategies. |
||
---|---|---|
.. | ||
bitstream.h | ||
entropy_common.c | ||
error_private.c | ||
error_private.h | ||
fse_decompress.c | ||
fse.h | ||
huf.h | ||
mem.h | ||
pool.c | ||
pool.h | ||
threading.c | ||
threading.h | ||
xxhash.c | ||
xxhash.h | ||
zstd_common.c | ||
zstd_errors.h | ||
zstd_internal.h |