summaryrefslogtreecommitdiffstats
path: root/lib/lz4hc.c
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2018-04-27 20:52:30 (GMT)
committerGitHub <noreply@github.com>2018-04-27 20:52:30 (GMT)
commit1e6ca25af3a0906f4b2cd8fd8f9e732bc7ee0eac (patch)
tree782309e8b20d2d8f80c988bb6145d8855d40d9dd /lib/lz4hc.c
parent47d70e755e67d187da43ffe14d5ce47bf1ff04de (diff)
parentfefc40fc0afe8c1f5a02e65b94bb65515fd949c4 (diff)
downloadlz4-1e6ca25af3a0906f4b2cd8fd8f9e732bc7ee0eac.zip
lz4-1e6ca25af3a0906f4b2cd8fd8f9e732bc7ee0eac.tar.gz
lz4-1e6ca25af3a0906f4b2cd8fd8f9e732bc7ee0eac.tar.bz2
Merge pull request #520 from felixhandte/frame-dict-nits
Minor Fixes to Dictionary Preparation in LZ4 Frame
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r--lib/lz4hc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c
index 1c7096b..948d66d 100644
--- a/lib/lz4hc.c
+++ b/lib/lz4hc.c
@@ -889,8 +889,8 @@ int LZ4_loadDictHC (LZ4_streamHC_t* LZ4_streamHCPtr, const char* dictionary, int
dictionary += dictSize - 64 KB;
dictSize = 64 KB;
}
+ LZ4_resetStreamHC(LZ4_streamHCPtr, ctxPtr->compressionLevel);
LZ4HC_init (ctxPtr, (const BYTE*)dictionary);
- LZ4HC_clearTables (ctxPtr);
ctxPtr->end = (const BYTE*)dictionary + dictSize;
if (dictSize >= 4) LZ4HC_Insert (ctxPtr, ctxPtr->end-3);
return dictSize;