1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-05 01:51:53 +02:00

Move unaltered av_realloc() comments to the header file.

Originally committed as revision 8251 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Panagiotis Issaris 2007-03-05 13:46:47 +00:00
parent 9a07029916
commit d6def91a3b
2 changed files with 6 additions and 5 deletions

View File

@ -337,6 +337,12 @@ tend= read_time();\
* CPU). av_malloc(0) must return a non NULL pointer. * CPU). av_malloc(0) must return a non NULL pointer.
*/ */
void *av_malloc(unsigned int size); void *av_malloc(unsigned int size);
/**
* av_realloc semantics (same as glibc): if ptr is NULL and size > 0,
* identical to malloc(size). If size is zero, it is identical to
* free(ptr) and NULL is returned.
*/
void *av_realloc(void *ptr, unsigned int size); void *av_realloc(void *ptr, unsigned int size);
void av_free(void *ptr); void av_free(void *ptr);

View File

@ -91,11 +91,6 @@ void *av_malloc(unsigned int size)
return ptr; return ptr;
} }
/**
* av_realloc semantics (same as glibc): if ptr is NULL and size > 0,
* identical to malloc(size). If size is zero, it is identical to
* free(ptr) and NULL is returned.
*/
void *av_realloc(void *ptr, unsigned int size) void *av_realloc(void *ptr, unsigned int size)
{ {
#ifdef CONFIG_MEMALIGN_HACK #ifdef CONFIG_MEMALIGN_HACK