Add a std/gif decode_frame work_buffer arg

This commit is contained in:
Nigel Tao committed 2018-06-11 08:55:28 +10:00
1 parent 156cea5a70
commit 3d035df908
6 files changed
+23 -15

No files matched your search

+2 -1
View File
@@ -261,7 +261,8 @@ const char* play() {
}
while (1) {
s = wuffs_gif__decoder__decode_frame(&dec, &ib, src_reader);
s = wuffs_gif__decoder__decode_frame(&dec, &ib, src_reader,
((wuffs_base__slice_u8){}));
if (s) {
if (s == WUFFS_BASE__SUSPENSION_END_OF_DATA) {
break;