]> git.ipfire.org Git - thirdparty/zstd.git/commit
Set requestedParams in ZSTD_initCStream*() 1237/head
authorNick Terrell <terrelln@fb.com>
Fri, 13 Jul 2018 00:56:58 +0000 (17:56 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 13 Jul 2018 01:35:55 +0000 (18:35 -0700)
commit6d222c437ca1f3b7420f414354643d3f11ba075a
tree0293c9989ae710e560c00adf539122f05fe6463b
parent14a92e90fe8e149cd7a112f217ff5e3e82d20ca7
Set requestedParams in ZSTD_initCStream*()

The correct parameters are used once, but once `ZSTD_resetCStream()` is
called the default parameters (level 3) are used. Fix this by setting
`requestedParams` in the `ZSTD_initCStream*()` functions.

The added tests both fail before this patch and pass after.
lib/compress/zstd_compress.c
tests/zstreamtest.c