diff options
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 3 |
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; |