mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
Make gif's decoder.restart_frame ! not !?
This commit is contained in:
1 parent
20c474b32a
commit
19ddd4450f
3 files changed
+11
-12
No files matched your search
@@ -188,7 +188,7 @@ pub func decoder.workbuf_len() base.range_ii_u64 {
|
||||
max_incl:this.width as base.u64)
|
||||
}
|
||||
|
||||
pub func decoder.restart_frame!?(index base.u64, io_position base.u64) {
|
||||
pub func decoder.restart_frame!(index base.u64, io_position base.u64) base.status {
|
||||
if this.call_sequence == 0 {
|
||||
return base."?bad call sequence"
|
||||
}
|
||||
@@ -198,6 +198,7 @@ pub func decoder.restart_frame!?(index base.u64, io_position base.u64) {
|
||||
this.num_decoded_frame_configs_value = args.index
|
||||
this.num_decoded_frames_value = args.index
|
||||
this.reset_gc!()
|
||||
return ok
|
||||
}
|
||||
|
||||
pub func decoder.decode_frame_config!??(dst nptr base.frame_config, src base.io_reader) {
|
||||
|
||||
Reference in new issue
Block a user