# HG changeset patch # User diego # Date 1296813706 0 # Node ID 5d1ad5720b329ed23e6ba6805353d013e735fda6 # Parent 3ceeb62a11254187637bcab735a924628cbb42f5 Replace one more instance of memalign in libmpcodecs with av_malloc. av_malloc is more portable than memalign and already used in other parts. diff -r 3ceeb62a1125 -r 5d1ad5720b32 libmpcodecs/vf_pp.c --- a/libmpcodecs/vf_pp.c Thu Feb 03 14:44:46 2011 +0000 +++ b/libmpcodecs/vf_pp.c Fri Feb 04 10:01:46 2011 +0000 @@ -210,7 +210,7 @@ for(i=0; i<=PP_QUALITY_MAX; i++){ PPMode *ppMode; - ppMode= (PPMode*)memalign(8, sizeof(PPMode)); + ppMode = av_malloc(sizeof(PPMode)); ppMode->lumMode= hex_mode; ppMode->chromMode= ((hex_mode&0xFF)>>4) | (hex_mode&0xFFFFFF00);