[FFmpeg-devel] [PATCH 01/21] libavutil/mem: added av_arraydup to accompany av_realloc*_array functions

Erkki Seppälä erkki.seppala.ext at nokia.com
Tue Aug 23 14:36:19 EEST 2016


On 08/23/2016 02:18 PM, Michael Niedermayer wrote:
> see:
> 0421 15:12 Michael Niederm (3.9K) [FFmpeg-devel] [PATCH] avutil/mem: remove av_realloc / av_malloc incompatibility warning
> i think thats a better choice than maintaining all memory allocation
> in 2 incompatible systems

Well, it's still not completely useless even if redundant, given that 
the interface is more similar to av_malloc_array and av_realloc_array. 
Code that resizes arrays needing to make a copy of the array would be 
more uniform with a function such as av_arraydup (better called 
av_dup_array?).

But that's only a philosophical reason. And now checking for my use 
scenario I noticed that the code that made use of the function does not 
exist anymore, so this patch can be just dropped.



More information about the ffmpeg-devel mailing list