From: Nick Magerko Date: Mon, 19 Aug 2019 18:20:28 +0000 (-0700) Subject: Keep content size flag set in stream size mode X-Git-Tag: v1.4.4~1^2~74^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30bfa228e84500855e80e792f7de796257d99ab3;p=thirdparty%2Fzstd.git Keep content size flag set in stream size mode --- diff --git a/programs/fileio.c b/programs/fileio.c index 5492f9448..873013a51 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -1006,9 +1006,8 @@ FIO_compressZstdFrame(FIO_prefs_t* const prefs, if (fileSize != UTIL_FILESIZE_UNKNOWN) { CHECK(ZSTD_CCtx_setPledgedSrcSize(ress.cctx, fileSize)); } else if (prefs->streamSrcSize > 0) { - /* unknown source size; use the declared stream size and disable writing this size to frame during compression */ + /* unknown source size; use the declared stream size */ CHECK( ZSTD_CCtx_setPledgedSrcSize(ress.cctx, prefs->streamSrcSize) ); - CHECK( ZSTD_CCtx_setParameter(ress.cctx, ZSTD_c_contentSizeFlag, 0) ); } (void)srcFileName;