1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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;
#endif
assert(size);
/* let's disallow possible ambiguous cases */
if (size > (INT_MAX-32) || !size)
return NULL;