[FFmpeg-devel] [PATCH] avutil/mem: remove av_realloc / av_malloc incompatibility warning

Michael Niedermayer michael at niedermayer.cc
Sun Jan 10 04:29:47 CET 2016

On Tue, Apr 21, 2015 at 03:12:36PM +0200, Michael Niedermayer wrote:
> memalign() is not guranteed to be compatible with free() or realloc()
> and for platforms in this category we have --enable-memalign-hack
> (which should be enabled automatically if such system is detected)
> Trying to somehow half support systems that can free() memalign memory
> but not reallocate it seems not worth the amount of work needed to
> keep 2 then incompatible allocation systems and ensure their
> seperation. That is unless this would affect a major platform
> on which we want to avoid the memalign hack code
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
>  libavutil/mem.h |   24 ------------------------
>  1 file changed, 24 deletions(-)

is anyone against this patch ?

people replace av_realloc by av_malloc, memcpy, av_free due to this
(example: [FFmpeg-devel] [PATCH v5] lavf/matroskadec: Normalize noncompliant A_QUICKTIME/V_QUICKTIME private data)


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160110/51f0b5a3/attachment.sig>

More information about the ffmpeg-devel mailing list