summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2006-09-25 15:23:40 +0000
committerLuca Barbato <lu_zero@gentoo.org>2006-09-25 15:23:40 +0000
commit79e47000c8847cc70acf6b7debac10add2e88a81 (patch)
treecc10b5acc1a3d175444e45d948aa831993073122 /libavcodec/utils.c
parent10aa27db712fce3a3c8e67a66ff72fcd879bcddf (diff)
move memory functions from avcodec to avutil
Originally committed as revision 6330 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 90880af01c..68d2602c03 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -57,29 +57,6 @@ const uint8_t ff_reverse[256]={
static int volatile entangled_thread_counter=0;
-void *av_mallocz(unsigned int size)
-{
- void *ptr;
-
- ptr = av_malloc(size);
- if (!ptr)
- return NULL;
- memset(ptr, 0, size);
- return ptr;
-}
-
-char *av_strdup(const char *s)
-{
- char *ptr;
- int len;
- len = strlen(s) + 1;
- ptr = av_malloc(len);
- if (!ptr)
- return NULL;
- memcpy(ptr, s, len);
- return ptr;
-}
-
/**
* realloc which does nothing if the block is large enough
*/
@@ -93,7 +70,6 @@ void *av_fast_realloc(void *ptr, unsigned int *size, unsigned int min_size)
return av_realloc(ptr, *size);
}
-
static unsigned int last_static = 0;
static unsigned int allocated_static = 0;
static void** array_static = NULL;
@@ -157,16 +133,6 @@ static void do_free(void)
av_free_static();
}
-/**
- * Frees memory and sets the pointer to NULL.
- * @param arg pointer to the pointer which should be freed
- */
-void av_freep(void *arg)
-{
- void **ptr= (void**)arg;
- av_free(*ptr);
- *ptr = NULL;
-}
/* encoder management */
AVCodec *first_avcodec = NULL;