]> git.ipfire.org Git - thirdparty/zstd.git/commit
fixes adaptation on srcSize
authorYann Collet <cyan@fb.com>
Thu, 14 Dec 2017 01:45:26 +0000 (17:45 -0800)
committerYann Collet <cyan@fb.com>
Thu, 14 Dec 2017 01:45:26 +0000 (17:45 -0800)
commit5432ef6921b840c6cfe25f5d8ffcc87f4f91deff
treeebb814f2416ccb2695e24816f180f8f59c4f298c
parent90d38f6a5354f9b361982011caf2b23b9249fc68
fixes adaptation on srcSize

This patch restores capability for each file to receive adapted compression parameters depending on its size.

The bug breaking this feature was relatively silly :
setting a parameter with a value "0" is supposed to be a no-op.
Unfortunately, it would pin down compression parameters as if they were manually set,
preventing later automatic adaptation.

Unfortunately, I'm currently short of a test case that could check this situation and trigger an error.
Compression parameters selection between tableID 0,1,2,3 is largely internal,
leaving no trace to outside world, not even in frame header.
lib/compress/zstd_compress.c
programs/fileio.c