Fix parameter selection and adjustment with srcSize == 0

This commit is contained in:
Nick Terrell
2019-11-07 08:58:43 -08:00
parent 2ed5344e84
commit 8c474f9845
4 changed files with 79 additions and 31 deletions
+1
View File
@@ -940,6 +940,7 @@ MEM_STATIC void ZSTD_debugTable(const U32* table, U32 max)
/* ZSTD_getCParamsFromCCtxParams() :
* cParams are built depending on compressionLevel, src size hints,
* LDM and manually set compression parameters.
* Note: srcSizeHint == 0 means 0!
*/
ZSTD_compressionParameters ZSTD_getCParamsFromCCtxParams(
const ZSTD_CCtx_params* CCtxParams, U64 srcSizeHint, size_t dictSize);