[svn] / branches / dev-api-4 / xvidcore / src / utils / mem_align.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/src/utils/mem_align.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/xvidcore/src/utils/mem_align.c revision 209, Fri Jun 14 13:29:07 2002 UTC branches/dev-api-4/xvidcore/src/utils/mem_align.c revision 886, Fri Feb 21 14:49:29 2003 UTC
# Line 33  Line 33 
33   *   *
34   *  - Thu Jun 13 23:50:07 2002 Added legal header   *  - Thu Jun 13 23:50:07 2002 Added legal header
35   *   *
36   *  $Id: mem_align.c,v 1.8 2002-06-14 13:27:28 Isibaar Exp $   *  $Id: mem_align.c,v 1.15 2003-02-15 15:22:19 edgomez Exp $
37   *   *
38   ****************************************************************************/   ****************************************************************************/
39    
# Line 71  Line 71 
71                  if ((mem_ptr = (uint8_t *) malloc(size + 1)) != NULL) {                  if ((mem_ptr = (uint8_t *) malloc(size + 1)) != NULL) {
72    
73                          /* Store (mem_ptr - "real allocated memory") in *(mem_ptr-1) */                          /* Store (mem_ptr - "real allocated memory") in *(mem_ptr-1) */
74                          *mem_ptr = 0;                          *mem_ptr = 1;
75    
76                          /* Return the mem_ptr pointer */                          /* Return the mem_ptr pointer */
77                          return (void *) mem_ptr++;                          return (void *) mem_ptr++;

Legend:
Removed from v.209  
changed lines
  Added in v.886

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4