diff options
author | W. Felix Handte <w@felixhandte.com> | 2018-04-20 18:52:13 (GMT) |
---|---|---|
committer | W. Felix Handte <w@felixhandte.com> | 2018-04-20 18:59:34 (GMT) |
commit | d7347f9eeaffe5351886b6174f9974bd541b9b7d (patch) | |
tree | 32aeb9a6efdd431fdaa9a6f4c9967aaf1be9b7d6 /lib/lz4frame.c | |
parent | ca833f928f64d0b88fbfd2a8a8bc11b8333e487d (diff) | |
download | lz4-d7347f9eeaffe5351886b6174f9974bd541b9b7d.zip lz4-d7347f9eeaffe5351886b6174f9974bd541b9b7d.tar.gz lz4-d7347f9eeaffe5351886b6174f9974bd541b9b7d.tar.bz2 |
Add API for Attaching Dictionaries
Diffstat (limited to 'lib/lz4frame.c')
-rw-r--r-- | lib/lz4frame.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c index a43f595..d4d9397 100644 --- a/lib/lz4frame.c +++ b/lib/lz4frame.c @@ -549,9 +549,8 @@ static void LZ4F_applyCDict(void* ctx, LZ4_resetStream_fast((LZ4_stream_t *)ctx); LZ4_attach_dictionary((LZ4_stream_t *)ctx, cdict ? cdict->fastCtx : NULL); } else { - LZ4HC_CCtx_internal *internal_ctx = &((LZ4_streamHC_t *)ctx)->internal_donotuse; LZ4_resetStreamHC_fast((LZ4_streamHC_t*)ctx, level); - internal_ctx->dictCtx = cdict ? &(cdict->HCCtx->internal_donotuse) : NULL; + LZ4_attach_HC_dictionary((LZ4_streamHC_t *)ctx, cdict ? cdict->HCCtx : NULL); } } |