liblzma: Allow nice_len 2 and 3 even if match finder requires 3 or 4.
commit3be88ae071371caa279b44e13f4836fb178fe4ae
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Nov 2022 21:23:55 +0000 (24 23:23 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 24 Nov 2022 21:23:55 +0000 (24 23:23 +0200)
treeb5afaacaa76de62249c17531143d51c8962cc659
parent93439cfafe1768b3b18d67d2356ef7e7559bba59
liblzma: Allow nice_len 2 and 3 even if match finder requires 3 or 4.

That is, if the specified nice_len is smaller than the minimum
of the match finder, silently use the match finder's minimum value
instead of reporting an error. The old behavior is annoying to users
and it complicates xz options handling too.
src/liblzma/lz/lz_encoder.c
src/liblzma/lz/lz_encoder.h
src/liblzma/lzma/lzma_encoder.c