Mercurial > libavcodec.hg
comparison mem.c @ 2522:e25782262d7d libavcodec
kill warnings patch by (Mns Rullgrd <mru inprovide com>)
author | michael |
---|---|
date | Thu, 24 Feb 2005 19:08:50 +0000 |
parents | d0bcc85d3856 |
children | ef2149182f1c |
comparison
equal
deleted
inserted
replaced
2521:d3885f927bc7 | 2522:e25782262d7d |
---|---|
43 * CPU). av_malloc(0) must return a non NULL pointer. | 43 * CPU). av_malloc(0) must return a non NULL pointer. |
44 */ | 44 */ |
45 void *av_malloc(unsigned int size) | 45 void *av_malloc(unsigned int size) |
46 { | 46 { |
47 void *ptr; | 47 void *ptr; |
48 #ifdef MEMALIGN_HACK | |
48 int diff; | 49 int diff; |
50 #endif | |
49 | 51 |
50 /* lets disallow possible ambiguous cases */ | 52 /* lets disallow possible ambiguous cases */ |
51 if(size > INT_MAX) | 53 if(size > INT_MAX) |
52 return NULL; | 54 return NULL; |
53 | 55 |
95 * identical to malloc(size). If size is zero, it is identical to | 97 * identical to malloc(size). If size is zero, it is identical to |
96 * free(ptr) and NULL is returned. | 98 * free(ptr) and NULL is returned. |
97 */ | 99 */ |
98 void *av_realloc(void *ptr, unsigned int size) | 100 void *av_realloc(void *ptr, unsigned int size) |
99 { | 101 { |
102 #ifdef MEMALIGN_HACK | |
100 int diff; | 103 int diff; |
104 #endif | |
105 | |
101 /* lets disallow possible ambiguous cases */ | 106 /* lets disallow possible ambiguous cases */ |
102 if(size > INT_MAX) | 107 if(size > INT_MAX) |
103 return NULL; | 108 return NULL; |
104 | 109 |
105 #ifdef MEMALIGN_HACK | 110 #ifdef MEMALIGN_HACK |