mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
have image_buffer.set_from_slice return an error
This commit is contained in:
1 parent
bc702b4c2b
commit
26ce04ab64
21 files changed
+241
-193
No files matched your search
@@ -248,9 +248,11 @@ const char* play() {
|
||||
return "could not allocate print buffer";
|
||||
}
|
||||
}
|
||||
// TODO: check wuffs_base__image_buffer__set_from_slice errors?
|
||||
wuffs_base__image_buffer__set_from_slice(
|
||||
s = wuffs_base__image_buffer__set_from_slice(
|
||||
&ib, ic, ((wuffs_base__slice_u8){.ptr = image_buffer, .len = image_len}));
|
||||
if (s) {
|
||||
return wuffs_gif__status__string(s);
|
||||
}
|
||||
|
||||
if (!seen_num_loops) {
|
||||
seen_num_loops = true;
|
||||
|
||||
Reference in new issue
Block a user