example/gifplayer: tweak try_allocate workbuf len

This commit is contained in:
Nigel Tao committed 2024-04-05 13:33:15 +11:00
1 parent a9a6d8ac55
commit 8ed5d1327b
1 file changed
+1 -2
+1 -2
View File
@@ -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";
}