mirror of
https://github.com/facebook/zstd.git
synced 2025-08-01 09:47:01 +03:00
Stop using deprecated reset?Stream functions
These are replaced by the corresponding context resets. When converting resetCStream, CCtx_setPledgedSrcSize isn't called if the source size is "unknown". This helps reduce the reliance on "static only" symbols, as well as reducing the use of deprecated functions. Signed-off-by: Stephen Kitt <steve@sk2.org>
This commit is contained in:
@ -2109,7 +2109,7 @@ FIO_decompressZstdFrame(FIO_ctx_t* const fCtx, dRess_t* ress, FILE* finput,
|
||||
if (srcFileLength>20) srcFileName += srcFileLength-20;
|
||||
}
|
||||
|
||||
ZSTD_resetDStream(ress->dctx);
|
||||
ZSTD_DCtx_reset(ress->dctx, ZSTD_reset_session_only);
|
||||
|
||||
/* Header loading : ensures ZSTD_getFrameHeader() will succeed */
|
||||
{ size_t const toDecode = ZSTD_FRAMEHEADERSIZE_MAX;
|
||||
|
Reference in New Issue
Block a user