]> git.ipfire.org Git - thirdparty/zstd.git/commit
Fix setParameter not falling back to default compression level on 0 value
authori-do-cpp <62053234+i-do-cpp@users.noreply.github.com>
Mon, 31 Aug 2020 07:25:43 +0000 (09:25 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Aug 2020 07:25:43 +0000 (09:25 +0200)
commitd514281e730a0798c8f386829e6d37632db6adef
treec9a07ab9cee72a67fca49b3761ad60a0cacaa6ae
parentc6d5a2cad036017213fd175ceab7ba1423211d1c
Fix setParameter not falling back to default compression level on 0 value

See documentation for `ZSTD_c_compressionLevel`: `Special: value 0 means default, which is controlled by ZSTD_CLEVEL_DEFAULT`
lib/compress/zstd_compress.c