[SCM] libav/experimental: av_freep() recommandition

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:45:49 UTC 2013


The following commit has been merged in the experimental branch:
commit 1499e0bee93ae3d281eaca93b186c8a3bcec2063
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Jan 4 09:42:37 2006 +0000

    av_freep() recommandition
    
    Originally committed as revision 4809 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/mem.c b/libavcodec/mem.c
index 2f972b7..d24da6a 100644
--- a/libavcodec/mem.c
+++ b/libavcodec/mem.c
@@ -117,7 +117,11 @@ void *av_realloc(void *ptr, unsigned int size)
 #endif
 }
 
-/* NOTE: ptr = NULL is explicetly allowed */
+/**
+ * Free memory which has been allocated with av_malloc(z)() or av_realloc().
+ * NOTE: ptr = NULL is explicetly allowed 
+ * Note2: it is recommanded that you use av_freep() instead
+ */
 void av_free(void *ptr)
 {
     /* XXX: this test should not be needed on most libcs */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list