summaryrefslogtreecommitdiff
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d46c51d9cc..bc7da83efe 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -23,6 +23,9 @@
void *av_mallocz(unsigned int size)
{
void *ptr;
+
+ if(size == 0) fprintf(stderr, "Warning, allocating 0 bytes\n");
+
ptr = av_malloc(size);
if (!ptr)
return NULL;