Skip to content

Commit ca5a8bb

Browse files
committed
re-added patch ...
1 parent 1e1e26f commit ca5a8bb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/compress/zstdmt_compress.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# include <stdio.h>
3434
# include <unistd.h>
3535
# include <sys/times.h>
36-
static unsigned g_debugLevel = 3;
36+
static unsigned g_debugLevel = 2;
3737
# define DEBUGLOGRAW(l, ...) if (l<=g_debugLevel) { fprintf(stderr, __VA_ARGS__); }
3838
# define DEBUGLOG(l, ...) if (l<=g_debugLevel) { fprintf(stderr, __FILE__ ": "); fprintf(stderr, __VA_ARGS__); fprintf(stderr, " \n"); }
3939

@@ -235,7 +235,7 @@ void ZSTDMT_compressChunk(void* jobDescription)
235235
if (ZSTD_isError(initError)) { job->cSize = initError; goto _endJob; }
236236
} else { /* srcStart points at reloaded section */
237237
size_t const dictModeError = ZSTD_setCCtxParameter(job->cctx, ZSTD_p_forceRawDict, 1); /* Force loading dictionary in "content-only" mode (no header analysis) */
238-
size_t const initError = ZSTD_compressBegin_advanced(job->cctx, job->srcStart, job->dictSize, job->params, 0);
238+
size_t const initError = ZSTD_compressBegin_advanced(job->cctx, job->srcStart, job->dictSize, job->params, job->fullFrameSize);
239239
if (ZSTD_isError(initError) || ZSTD_isError(dictModeError)) { job->cSize = initError; goto _endJob; }
240240
ZSTD_setCCtxParameter(job->cctx, ZSTD_p_forceWindow, 1);
241241
}

0 commit comments

Comments
 (0)