Commit 15d0e89b authored by takis's avatar takis

Move unaltered av_realloc() comments to the header file.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8251 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 37626f05
...@@ -337,6 +337,12 @@ tend= read_time();\ ...@@ -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);
......
...@@ -91,11 +91,6 @@ void *av_malloc(unsigned int size) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment