summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavutil/common.h6
-rw-r--r--libavutil/mem.c5
2 files changed, 6 insertions, 5 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index 954cb5c06e..89f8a01f52 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -337,6 +337,12 @@ tend= read_time();\
* CPU). av_malloc(0) must return a non NULL pointer.
*/
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_free(void *ptr);
diff --git a/libavutil/mem.c b/libavutil/mem.c
index 1a5d00a910..c95892b361 100644
--- a/libavutil/mem.c
+++ b/libavutil/mem.c
@@ -91,11 +91,6 @@ void *av_malloc(unsigned int size)
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)
{
#ifdef CONFIG_MEMALIGN_HACK