Remove the std/lzw decoder.available method

This commit is contained in:
Nigel Tao committed 2018-12-16 10:21:55 +11:00
1 parent 247232091d
commit 7a02605144
3 files changed
+7 -33

No files matched your search

+2 -2
View File
@@ -661,8 +661,8 @@ pri func decoder.decode_id_part1!??(dst ptr base.pixel_buffer, src base.io_reade
this.compressed_ri ~sat+= r.since_mark().length()
}
if this.lzw.available() > 0 {
var uncompressed slice base.u8 = this.lzw.take_all!()
var uncompressed slice base.u8 = this.lzw.take_all!()
if uncompressed.length() > 0 {
this.copy_to_image_buffer!?(pb:args.dst, src:uncompressed)
}