Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Aug 11, 2022 at 8:29
  • I think the issue is in the next line of code: s->point_cache= av_malloc_array(s->cache_allocated, sizeof(*s->point_cache)). Size of Point is at least 22 bytes. s->point_cache = 7680*4320*3*22` = 2189721600. The size is grater than MAX_INT (2147483647). It looks like av_malloc_array is limited to MAX_INT size (I don't know if the limitation is a bug). In case you want to fix the sources... replace av_malloc_array with malloc. Commented Aug 11, 2022 at 10:20
  • Thank you! I changed line 72 of github.com/FFmpeg/FFmpeg/blob/master/libavutil/mem.c from "static atomic_size_t max_alloc_size = ATOMIC_VAR_INIT(INT_MAX);" to "static atomic_size_t max_alloc_size = ATOMIC_VAR_INIT(2*INT_MAX);" With that I was able to generate the 8k assets I need. Commented Aug 15, 2022 at 2:45