On 08/23/2016 02:05 PM, Michael Niedermayer wrote:
> on which platform does av_memdup() not work with av_realloc_array() ?

I cannot indicate such a platform. However, the documentation for av_malloc says:

"Pointers originating from the av_malloc() family of functions
must not be passed to av_realloc(). The former can be
implemented using memalign() (or other functions), and
there is no guarantee that pointers from such functions
can be passed to realloc() at all.  The situation is
undefined according to POSIX and may crash with some
libc implementations."

And av_memdup uses av_malloc.

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to