mem: Don't abort on av_malloc(0) in debug mode
[ffmpeg.git] / libavutil / mem.c
index 0fe9f5422a56970a723ee1cc7977a567c56e88d1..3769da7d21adc2b4f91bb0898a9c4d55aec9d621 100644 (file)
@@ -68,8 +68,6 @@ void *av_malloc(size_t size)
     long diff;
 #endif
 
-    assert(size);
-
     /* let's disallow possible ambiguous cases */
     if (size > (INT_MAX-32) || !size)
         return NULL;