mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2024-11-22 05:33:58 +00:00
Fixes for -stats
This commit is contained in:
parent
f5ef6bf868
commit
b5117c3dfe
@ -1073,6 +1073,7 @@ int main(int argc, char **argv) {
|
||||
fprintf(stderr, " -cbench: benchmark in-memory compression\n");
|
||||
fprintf(stderr, " -dbench: benchmark in-memory decompression\n");
|
||||
fprintf(stderr, " -test: run automated self-tests\n");
|
||||
fprintf(stderr, " -stats: show compressed data stats\n");
|
||||
fprintf(stderr, " -v: be verbose\n");
|
||||
fprintf(stderr, " -f <value>: LZSA compression format (1-2)\n");
|
||||
fprintf(stderr, " -r: raw block format (max. 64 Kb files)\n");
|
||||
|
@ -74,6 +74,8 @@ int lzsa_compressor_init(lzsa_compressor *pCompressor, const int nMaxWindowSize,
|
||||
pCompressor->stats.min_literals = -1;
|
||||
pCompressor->stats.min_match_len = -1;
|
||||
pCompressor->stats.min_offset = -1;
|
||||
pCompressor->stats.min_rle1_len = -1;
|
||||
pCompressor->stats.min_rle2_len = -1;
|
||||
|
||||
if (!nResult) {
|
||||
pCompressor->intervals = (unsigned int *)malloc(nMaxWindowSize * sizeof(unsigned int));
|
||||
|
Loading…
Reference in New Issue
Block a user