On Sun, Sep 08, 2013 at 08:09:17AM +0200, Luca Barbato wrote:
> --- a/libavutil/mem.h
> +++ b/libavutil/mem.h
> @@ -100,14 +100,14 @@ av_alloc_size(1, 2) static inline void 
> *av_malloc_array(size_t nmemb, size_t siz
>   * Allocate or reallocate a block of memory.
>   * If ptr is NULL and size > 0, allocate a new block. If
>   * size is zero, free the memory block pointed to by ptr.
> + * @note Pointers provided by av_malloc family of functions cannot be
> + * passed to av_realloc().

Pointers originating from the av_malloc() family of functions must not
be passed to av_realloc(). Just as with POSIX realloc(), behavior is
undefined in that case; alignment requirements may not be fulfilled,
crashes may occur.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to