[Ffmpeg-cvslog] r8251 - in trunk/libavutil: common.h mem.c

takis subversion
Mon Mar 5 14:46:47 CET 2007


Author: takis
Date: Mon Mar  5 14:46:47 2007
New Revision: 8251

Modified:
   trunk/libavutil/common.h
   trunk/libavutil/mem.c

Log:
Move unaltered av_realloc() comments to the header file.


Modified: trunk/libavutil/common.h
==============================================================================
--- trunk/libavutil/common.h	(original)
+++ trunk/libavutil/common.h	Mon Mar  5 14:46:47 2007
@@ -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);
 

Modified: trunk/libavutil/mem.c
==============================================================================
--- trunk/libavutil/mem.c	(original)
+++ trunk/libavutil/mem.c	Mon Mar  5 14:46:47 2007
@@ -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




More information about the ffmpeg-cvslog mailing list