aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/simple/simple_coder.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2022-11-14 23:19:57 +0200
committerLasse Collin <lasse.collin@tukaani.org>2022-11-14 23:19:57 +0200
commitb56bc8251d2736224af6bdaaae734ceb8926a879 (patch)
tree439e2a500ea7f635acfdd0088df307c1a9d9d185 /src/liblzma/simple/simple_coder.c
parentReplace the experimental ARM64 filter with a new experimental version. (diff)
downloadxz-b56bc8251d2736224af6bdaaae734ceb8926a879.tar.xz
Revert "liblzma: Simple/BCJ filters: Allow disabling generic BCJ options."
This reverts commit 177bdc922cb17bd0fd831ab8139dfae912a5c2b8 and also does equivalent change to arm64.c. Now that ARM64 filter will use lzma_options_bcj, this change is not needed anymore.
Diffstat (limited to '')
-rw-r--r--src/liblzma/simple/simple_coder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liblzma/simple/simple_coder.c b/src/liblzma/simple/simple_coder.c
index 59018366..4f499bef 100644
--- a/src/liblzma/simple/simple_coder.c
+++ b/src/liblzma/simple/simple_coder.c
@@ -237,7 +237,7 @@ lzma_simple_coder_init(lzma_next_coder *next, const lzma_allocator *allocator,
size_t (*filter)(void *simple, uint32_t now_pos,
bool is_encoder, uint8_t *buffer, size_t size),
size_t simple_size, size_t unfiltered_max,
- uint32_t alignment, bool is_encoder, bool is_generic_bcj)
+ uint32_t alignment, bool is_encoder)
{
// Allocate memory for the lzma_simple_coder structure if needed.
lzma_simple_coder *coder = next->coder;
@@ -270,7 +270,7 @@ lzma_simple_coder_init(lzma_next_coder *next, const lzma_allocator *allocator,
}
}
- if (is_generic_bcj && filters[0].options != NULL) {
+ if (filters[0].options != NULL) {
const lzma_options_bcj *simple = filters[0].options;
coder->now_pos = simple->start_offset;
if (coder->now_pos & (alignment - 1))