]> wimlib.net Git - wimlib/blobdiff - src/xpress-decompress.c
Add aligned malloc and free
[wimlib] / src / xpress-decompress.c
index 98ad03d44d0905eb050b19ceb3314c43a768c9ff..b378f85fc3a9f81b29cc0d235d05c0cde8a8a306 100644 (file)
@@ -144,7 +144,6 @@ static int
 xpress_lz_decode(struct input_bitstream * restrict istream,
                 u8 uncompressed_data[restrict],
                 unsigned uncompressed_len,
-                const u8 lens[restrict],
                 const u16 decode_table[restrict])
 {
        input_idx_t curpos;
@@ -156,9 +155,8 @@ xpress_lz_decode(struct input_bitstream * restrict istream,
 
                bitstream_ensure_bits(istream, 16);
 
-               sym = read_huffsym(istream, decode_table, lens,
-                                  XPRESS_NUM_SYMBOLS, XPRESS_TABLEBITS,
-                                  XPRESS_MAX_CODEWORD_LEN);
+               sym = read_huffsym(istream, decode_table,
+                                  XPRESS_TABLEBITS, XPRESS_MAX_CODEWORD_LEN);
                if (sym < XPRESS_NUM_CHARS) {
                        /* Literal  */
                        uncompressed_data[curpos] = sym;
@@ -211,7 +209,7 @@ xpress_decompress(const void *compressed_data, size_t compressed_size,
                             compressed_size - XPRESS_NUM_SYMBOLS / 2);
 
        return xpress_lz_decode(&istream, uncompressed_data,
-                               uncompressed_size, lens, decode_table);
+                               uncompressed_size, decode_table);
 }
 
 const struct decompressor_ops xpress_decompressor_ops = {