mirror of https://git.tukaani.org/xz.git
xz: Update a comment and initialization of filters_used_mask
This commit is contained in:
parent
e89293a0ba
commit
46ab56968f
|
@ -41,13 +41,13 @@ static lzma_stream strm = LZMA_STREAM_INIT;
|
||||||
/// the --block-list option.
|
/// the --block-list option.
|
||||||
static lzma_filter filters[NUM_FILTER_CHAIN_MAX][LZMA_FILTERS_MAX + 1];
|
static lzma_filter filters[NUM_FILTER_CHAIN_MAX][LZMA_FILTERS_MAX + 1];
|
||||||
|
|
||||||
/// Bit mask representing the filters that are actually used when encoding
|
/// Bitmask indicating which filter chains are actually used when encoding
|
||||||
/// in the xz format. This is needed since a filter chain could be
|
/// in the .xz format. This is needed since the filter chains specified using
|
||||||
/// specified in --filtersX (or the default filter chain), but never used
|
/// --filtersX (or the default filter chain) might in reality be unneeded
|
||||||
/// in --block-list. The default filter chain is always assumed to be used,
|
/// if they are never used in --block-list. When --block-list isn't
|
||||||
/// unless --block-list is specified and does not have a block using the
|
/// specified, only the default filter chain is used, thus the initial
|
||||||
/// default filter chain.
|
/// value of this variable is 1U << 0 (the number of the default chain is 0).
|
||||||
static uint32_t filters_used_mask = 1;
|
static uint32_t filters_used_mask = 1U << 0;
|
||||||
|
|
||||||
/// Input and output buffers
|
/// Input and output buffers
|
||||||
static io_buf in_buf;
|
static io_buf in_buf;
|
||||||
|
@ -339,7 +339,7 @@ coder_set_compression_settings(void)
|
||||||
} else {
|
} else {
|
||||||
// Reset filters used mask in case --block-list is not
|
// Reset filters used mask in case --block-list is not
|
||||||
// used, but --filtersX is used.
|
// used, but --filtersX is used.
|
||||||
filters_used_mask = 1;
|
filters_used_mask = 1U << 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
// The default check type is CRC64, but fallback to CRC32
|
// The default check type is CRC64, but fallback to CRC32
|
||||||
|
|
Loading…
Reference in New Issue