mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Simpify std/png "yield short read" loop
This commit is contained in:
1 parent
63d8564b3c
commit
a4b14a0f17
2 files changed
+2
-4
No files matched your search
@@ -1209,8 +1209,7 @@ pub func decoder.decode_frame?(dst: ptr base.pixel_buffer, src: base.io_reader,
|
||||
this.filter_and_swizzle!(dst: args.dst, workbuf: args.workbuf[.. this.workbuf_wi])
|
||||
}
|
||||
while true {
|
||||
yield? status
|
||||
status = base."$short read"
|
||||
yield? base."$short read"
|
||||
} endwhile
|
||||
}
|
||||
yield? status
|
||||
|
||||
Reference in new issue
Block a user