[FFmpeg-devel] [PATCH 1/9] avutil/mem: add av_dynarray2_add_nofree

James Almer jamrial at gmail.com
Thu Nov 30 15:10:26 EET 2023


On 11/30/2023 7:39 AM, Anton Khirnov wrote:
>> av_dynarray2_add_nofree
> 
> This is getting ridiculous. Do we really need 4 separate dynarray_add
> functions? Wouldn't a single one with a flags argument do the job?

Maybe, but i just wanted a av_dynarray2_add() that would not free the 
array on failure, as that'd mean leaks for my usecase.

I'll just try to use av_calloc() everywhere instead.


More information about the ffmpeg-devel mailing list