summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-04-16 19:25:48 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-04-20 00:54:35 (GMT)
commit61c7ceffede9607721ca496ac13d788625f9f668 (patch)
treeccb8bc1624ae3da348f1f08e2232c78f2759465c /lib
parent3591fe8ab8b4391d1f9104b38b9ac19deac2a3e8 (diff)
downloadlz4-61c7ceffede9607721ca496ac13d788625f9f668.zip
lz4-61c7ceffede9607721ca496ac13d788625f9f668.tar.gz
lz4-61c7ceffede9607721ca496ac13d788625f9f668.tar.bz2
Use Fast Reset API in LZ4F
Diffstat (limited to 'lib')
-rw-r--r--lib/lz4frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4frame.c b/lib/lz4frame.c
index ea6a668..d087a94 100644
--- a/lib/lz4frame.c
+++ b/lib/lz4frame.c
@@ -743,7 +743,7 @@ static int LZ4F_compressBlockHC(void* ctx, const char* src, char* dst, int srcSi
if (cdict) {
return LZ4_compress_HC_continue((LZ4_streamHC_t*)ctx, src, dst, srcSize, dstCapacity);
}
- return LZ4_compress_HC_extStateHC(ctx, src, dst, srcSize, dstCapacity, level);
+ return LZ4_compress_HC_extStateHC_fastReset(ctx, src, dst, srcSize, dstCapacity, level);
}
static int LZ4F_compressBlockHC_continue(void* ctx, const char* src, char* dst, int srcSize, int dstCapacity, int level, const LZ4F_CDict* cdict)