]> git.ipfire.org Git - thirdparty/zstd.git/commit
[libzstd] Set CLEVEL_CUSTOM correctly 879/head
authorNick Terrell <terrelln@fb.com>
Mon, 2 Oct 2017 20:43:30 +0000 (13:43 -0700)
committerNick Terrell <terrelln@fb.com>
Mon, 2 Oct 2017 20:43:30 +0000 (13:43 -0700)
commit86e83e926f1d8c03447865b340fc6126093eb517
tree38cf6bd2a524270fe152e864ef545a1aa53ca59a
parent7f580f9ee8b19fd29bc07a247b2d438f970072e7
[libzstd] Set CLEVEL_CUSTOM correctly

In `ZSTD_compressBegin_advanced()`, `ZSTD_parameters` are used to set the
compression parameters, but the level didn't get set to `CLEVEL_CUSTOM`, so
`ZSTD_compressBlock()` used the wrong parameters when checking the source
size.
lib/compress/zstd_compress.c