[Ffmpeg-devel] [PATCH] posix memalign

Rich Felker dalias
Fri May 13 18:58:41 CEST 2005


On Fri, May 13, 2005 at 06:31:27PM +0200, Michael Niedermayer wrote:
> Hi
> 
> On Friday 13 May 2005 15:48, Daniel Kristjansson wrote:
> > Simple patch that uses posix_memalign instead of plain memalign,
> > if _XOPEN_SOURCE is greater than or equal to 600.
> >
> > Unlike the old memalign() call, the memory allocated by posix_memalign()
> > can always be freed using free().
> 
> on which system does free(memalign()) fail? if none then consider this patch 
> rejected

Also posix_memalign does not exist on most systems, and is reportedly
broken on some systems on which it does exist. This was discussed a
month or so ago and rejected then too.

Rich





More information about the ffmpeg-devel mailing list