Add io_reader.skip

This commit is contained in:
Nigel Tao committed 2020-01-16 22:15:33 +11:00
1 parent 09ed091fe3
commit 6ef3ffe6c8
5 files changed
+9 -8

No files matched your search

+1 -2
View File
@@ -207,8 +207,7 @@ pri func decoder.skip_frame?(src: base.io_reader) {
bytes_per_row = ((this.width as base.u64) + 7) / 8
total_bytes = bytes_per_row * (this.height as base.u64)
// TODO: total_bytes may be larger than UINT32_MAX.
args.src.skip32?(n: (total_bytes & 0xFFFFFFFF) as base.u32)
args.src.skip?(n: total_bytes)
this.seen_frame = true
this.call_sequence = 2