]> wimlib.net Git - wimlib/commitdiff
xpress-decompress.c: Remove unnecessary bitstream_ensure_bits()
authorEric Biggers <ebiggers3@gmail.com>
Sun, 17 Aug 2014 05:33:47 +0000 (00:33 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 17 Aug 2014 05:33:47 +0000 (00:33 -0500)
src/xpress-decompress.c

index ebe0d23b73d6c1eccf23c9b4ee023d0172a13b3d..f060d0b0df2afeccfec25fbae91d41321f6beda6 100644 (file)
@@ -141,8 +141,6 @@ xpress_lz_decode(struct input_bitstream * restrict istream,
                unsigned sym;
                int ret;
 
                unsigned sym;
                int ret;
 
-               bitstream_ensure_bits(istream, 16);
-
                sym = read_huffsym(istream, decode_table,
                                   XPRESS_TABLEBITS, XPRESS_MAX_CODEWORD_LEN);
                if (sym < XPRESS_NUM_CHARS) {
                sym = read_huffsym(istream, decode_table,
                                   XPRESS_TABLEBITS, XPRESS_MAX_CODEWORD_LEN);
                if (sym < XPRESS_NUM_CHARS) {