--- mem_align.c 2002/10/19 11:41:11 1.10 +++ mem_align.c 2003/06/09 13:55:38 1.15.2.2 @@ -1,19 +1,9 @@ /***************************************************************************** * * XVID MPEG-4 VIDEO CODEC - * - Aligned memory allocator - + * - Aligned Memory Allocator - * - * Copyright(C) 2002 Michael Militzer - * 2002 Edouard Gomez - * - * This program is an implementation of a part of one or more MPEG-4 - * Video tools as specified in ISO/IEC 14496-2 standard. Those intending - * to use this software module in hardware or software products are - * advised that its use may infringe existing patents or copyrights, and - * any such use would be at such party's own risk. The original - * developer of this software module and his/her company, and subsequent - * editors and their companies, will have no liability for use of this - * software or modifications or derivatives thereof. + * Copyright(C) 2002-2003 Edouard Gomez * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +19,7 @@ * along with this program ; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: mem_align.c,v 1.10 2002/10/19 11:41:11 edgomez Exp $ + * $Id: mem_align.c,v 1.15.2.2 2003/06/09 13:55:38 edgomez Exp $ * ****************************************************************************/ @@ -66,10 +56,10 @@ if ((mem_ptr = (uint8_t *) malloc(size + 1)) != NULL) { /* Store (mem_ptr - "real allocated memory") in *(mem_ptr-1) */ - *mem_ptr = 0; + *mem_ptr = 1; /* Return the mem_ptr pointer */ - return (void *) mem_ptr++; + return (void *)(mem_ptr+1); }