Reset the GIF's LZW decoder if necessary

This commit is contained in:
Nigel Tao committed 2018-05-10 14:42:10 +10:00
1 parent 614ac408ae
commit 8586cf8e3d
7 files changed
+25 -6

No files matched your search

+1 -1
View File
@@ -301,7 +301,7 @@ pri func decoder.decode_id?(dst base.io_writer, src base.io_reader)() {
}
if this.previous_lzw_decode_ended_abruptly {
// TODO: reset this.lzw.
this.lzw.reset()
}
var lw base.u8 = in.src.read_u8?()