summaryrefslogtreecommitdiff
path: root/libavutil/mem.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-18 14:19:47 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-18 22:05:16 +0100
commitfc91eeab0b3c59f431653dec4e7358630b2c1f7e (patch)
treef801fb8a118f38c1d5d2c790f619e47d7945b0f9 /libavutil/mem.c
parent518742bc21f7baa4c9059e9705fca131d4e3a87a (diff)
avutil/mem: Add av_fast_mallocz()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/mem.c')
-rw-r--r--libavutil/mem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c
index 323b18311b..8dfaad8271 100644
--- a/libavutil/mem.c
+++ b/libavutil/mem.c
@@ -501,3 +501,7 @@ void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size)
ff_fast_malloc(ptr, size, min_size, 0);
}
+void av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size)
+{
+ ff_fast_malloc(ptr, size, min_size, 1);
+}