lieff / minimp4

Minimalistic MP4 mux/demux single header library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adjustable Memory Allocation Functions

thiekus opened this issue · comments

Hi, mini MP4 was works as expected for me, and I adopt this instead old and harder to intergerate libmp4v2 to generate h264 encoded stream in MP4 container. But could I have adjustable malloc functions to custom functions? My reasons is beacuse I'm prefer to use another memory allocator (e.g mimalloc) than the CRT default one, but I think it will somewhat useful for task including custom memory tracing functions, etc. I mean, like the miniaudio has adjustable macros for MA_MALLOC, MA_REALLOC and MA_FREE. Thanks!

commented

Hi) That's a good idea. Will do it at some point.