summaryrefslogtreecommitdiffstats
path: root/encoder.h
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2016-05-29 17:17:10 +0000
committerDaniel Baumann <mail@daniel-baumann.ch>2016-05-29 17:17:40 +0000
commit5fcb0d00fb1cdc480ceae6aff80d0ed3ddd602cf (patch)
tree986e0e9aa7aaa4c5402455481822c5edfba12566 /encoder.h
parentReleasing debian version 1.7-2. (diff)
downloadclzip-5fcb0d00fb1cdc480ceae6aff80d0ed3ddd602cf.tar.xz
clzip-5fcb0d00fb1cdc480ceae6aff80d0ed3ddd602cf.zip
Merging upstream version 1.8.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'encoder.h')
-rw-r--r--encoder.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/encoder.h b/encoder.h
index a8793e2..99670b1 100644
--- a/encoder.h
+++ b/encoder.h
@@ -1,5 +1,5 @@
/* Clzip - LZMA lossless data compressor
- Copyright (C) 2010-2015 Antonio Diaz Diaz.
+ Copyright (C) 2010-2016 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -306,6 +306,8 @@ static inline bool LZe_init( struct LZ_encoder * const e,
Lp_init( &e->rep_len_prices, &e->eb.rep_len_model, e->match_len_limit );
e->pending_num_pairs = 0;
e->num_dis_slots = 2 * real_bits( e->eb.mb.dictionary_size - 1 );
+ e->trials[1].prev_index = 0;
+ e->trials[1].prev_index2 = single_step_trial;
return true;
}