mirror of
https://github.com/facebook/zstd.git
synced 2026-01-06 11:21:19 +03:00
pass correct cparams
This commit is contained in:
committed by
W. Felix Handte
parent
a3f6e4026e
commit
b30f71becf
@@ -3486,10 +3486,13 @@ ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict_advanced2(const void* dict, size_t dict
|
||||
{
|
||||
int const enableDedicatedDictSearch = cctxParams->enableDedicatedDictSearch &&
|
||||
ZSTD_dedicatedDictSearch_isSupported(cctxParams->compressionLevel, dictSize);
|
||||
if (!enableDedicatedDictSearch)
|
||||
if (!enableDedicatedDictSearch) {
|
||||
ZSTD_compressionParameters cParams = ZSTD_getCParams_internal(
|
||||
cctxParams->compressionLevel, ZSTD_CONTENTSIZE_UNKNOWN, dictSize);
|
||||
return ZSTD_createCDict_advanced(dict, dictSize,
|
||||
dictLoadMethod, dictContentType, cctxParams->cParams,
|
||||
dictLoadMethod, dictContentType, cParams,
|
||||
customMem);
|
||||
}
|
||||
{
|
||||
ZSTD_compressionParameters const cParams = ZSTD_dedicatedDictSearch_getCParams(
|
||||
cctxParams->compressionLevel, dictSize);
|
||||
|
||||
Reference in New Issue
Block a user