xz: Add clarifying assertions

(cherry picked from commit 2de80494ed)
This commit is contained in:
Lasse Collin 2024-05-12 16:52:09 +03:00
parent 77bcf6b76a
commit 0e5e3e7bdc
1 changed files with 4 additions and 0 deletions

View File

@ -292,6 +292,10 @@ coder_set_compression_settings(void)
#ifdef HAVE_ENCODERS
if (opt_block_list != NULL) {
// args.c ensures these.
assert(opt_mode == MODE_COMPRESS);
assert(opt_format == FORMAT_XZ);
// Find out if block_list_chain_mask has a bit set that
// isn't set in filters_used_mask.
const uint32_t missing_chains_mask