diff --git a/gen/c/std/gif.c b/gen/c/std/gif.c index 2f7bff89..050aca38 100644 --- a/gen/c/std/gif.c +++ b/gen/c/std/gif.c @@ -3437,7 +3437,7 @@ static wuffs_gif__status wuffs_gif__decoder__decode_id_part1( } wuffs_gif__lzw_decoder__set_literal_width(&self->private_impl.f_lzw, ((uint32_t)(v_lw))); - v_write_to_ib_instead_of_w = false; + v_write_to_ib_instead_of_w = true; self->private_impl.f_previous_lzw_decode_ended_abruptly = true; while (true) { { diff --git a/std/gif/decode_gif.wuffs b/std/gif/decode_gif.wuffs index bd79023a..c77ed4dc 100644 --- a/std/gif/decode_gif.wuffs +++ b/std/gif/decode_gif.wuffs @@ -422,7 +422,7 @@ pri func decoder.decode_id_part1?(ib ptr base.image_buffer, dst base.io_writer, // TODO: delete the write_to_ib_instead_of_w hack. It should always be // true. - var write_to_ib_instead_of_w base.bool = false + var write_to_ib_instead_of_w base.bool = true this.previous_lzw_decode_ended_abruptly = true while true { diff --git a/test/c/std/gif.c b/test/c/std/gif.c index d9fa45d9..824d0e1c 100644 --- a/test/c/std/gif.c +++ b/test/c/std/gif.c @@ -356,7 +356,7 @@ void bench_wuffs_lzw_decode_100k() { // ---------------- GIF Tests // TODO: delete this. -const bool write_to_ib_instead_of_w = false; +const bool write_to_ib_instead_of_w = true; const char* wuffs_gif_decode(wuffs_base__io_buffer* dst, wuffs_base__io_buffer* src) {