mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 08:38:14 +01:00
example/gifplayer: tweak try_allocate workbuf len
This commit is contained in:
1 parent
a9a6d8ac55
commit
8ed5d1327b
1 file changed
+1
-2
@@ -314,8 +314,7 @@ try_allocate(wuffs_gif__decoder* dec) {
|
||||
|
||||
uint64_t workbuf_len_max_incl = wuffs_gif__decoder__workbuf_len(dec).max_incl;
|
||||
if (workbuf_len_max_incl > 0) {
|
||||
g_workbuf = wuffs_base__malloc_slice_u8(
|
||||
malloc, wuffs_gif__decoder__workbuf_len(dec).max_incl);
|
||||
g_workbuf = wuffs_base__malloc_slice_u8(malloc, workbuf_len_max_incl);
|
||||
if (!g_workbuf.ptr) {
|
||||
return "could not allocate work buffer";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user