[vlc-devel] [PATCH] Mac: Add a detection for posix_memalign and a work-around

Rafaël Carré rafael.carre at gmail.com
Wed Sep 21 08:00:12 CEST 2011


Le Tue, 20 Sep 2011 19:24:55 +0300,
"Rémi Denis-Courmont" <remi at remlab.net> a écrit :

> Le mardi 20 septembre 2011 19:21:49 Jean-Baptiste Kempf, vous avez écrit :
> > This should fix compilation on MacOS X sdk-10.5
> 
> I have not tried, but I believe this patch breaks the test suite.

Why? The patch looks alright (assuming free() can be used on what memalign() returns)

vlc_memalign() is only used here, so i don't think the test suite checks this code:

./modules/video_filter/gradfun.c:        cfg->buf    = vlc_memalign(16,
./modules/codec/avcodec/copy.c:    cache->buffer = vlc_memalign(16, cache->size);
./src/misc/picture.c:    uint8_t *p_data = vlc_memalign( 16, i_bytes );

-- 
Rafaël Carré



More information about the vlc-devel mailing list