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

wm4 nfxjfg at googlemail.com
Tue Apr 21 15:38:32 CEST 2015


On Tue, 21 Apr 2015 15:12:36 +0200
Michael Niedermayer <michaelni at gmx.at> 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

Isn't the problem that realloc() doesn't keep the alignment?


More information about the ffmpeg-devel mailing list