Update the dictionary and the transforms.

This commit is contained in:
Zoltan Szabadka
2014-03-25 16:48:25 +01:00
parent 494c85cebb
commit 0829e37293
9 changed files with 22402 additions and 11441 deletions
+2 -1
View File
@@ -987,7 +987,8 @@ int BrotliDecompress(BrotliInput input, BrotliOutput output) {
copy_dst = &ringbuffer[pos & ringbuffer_mask];
if (distance > max_distance) {
if (copy_length >= 3 && copy_length <= kMaxDictionaryWordLength) {
if (copy_length >= kMinDictionaryWordLength &&
copy_length <= kMaxDictionaryWordLength) {
int offset = kBrotliDictionaryOffsetsByLength[copy_length];
int word_id = distance - max_distance - 1;
int shift = kBrotliDictionarySizeBitsByLength[copy_length];