mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 16:32:11 +01:00
Have wbmp's restart_frame check call_sequence
This commit is contained in:
1 parent
67dbeb1d09
commit
47b9dcd118
2 files changed
+6
No files matched your search
@@ -241,6 +241,9 @@ pub func decoder.num_decoded_frames() 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"
|
||||
}
|
||||
if args.index <> 0 {
|
||||
return base."#bad argument"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user