mem: Don't abort on av_malloc(0) in debug mode

This makes the behaviour consistent between debug and release mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2012-04-11 10:33:43 +03:00
parent 5467742232
commit 620b1e7e98

View File

@ -68,8 +68,6 @@ void *av_malloc(size_t size)
long diff; long diff;
#endif #endif
assert(size);
/* let's disallow possible ambiguous cases */ /* let's disallow possible ambiguous cases */
if (size > (INT_MAX-32) || !size) if (size > (INT_MAX-32) || !size)
return NULL; return NULL;