Mercurial > mplayer.hg
changeset 32762:5d1ad5720b32
Replace one more instance of memalign in libmpcodecs with av_malloc.
av_malloc is more portable than memalign and already used in other parts.
author | diego |
---|---|
date | Fri, 04 Feb 2011 10:01:46 +0000 |
parents | 3ceeb62a1125 |
children | ce9c41d97bfd |
files | libmpcodecs/vf_pp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);