diff options
author | Martin Storsjö <martin@martin.st> | 2012-04-11 10:33:43 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-07-10 11:37:03 +0300 |
commit | 620b1e7e989e71825858c621fa96a7e0a742d239 (patch) | |
tree | 3b208c732d4ea8bbadb80694bf9198c3cf320179 /libavutil/mem.c | |
parent | 5467742232c312b7d61dca7ac57447f728d8d6c9 (diff) | |
download | ffmpeg-620b1e7e989e71825858c621fa96a7e0a742d239.tar.gz |
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>
Diffstat (limited to 'libavutil/mem.c')
-rw-r--r-- | libavutil/mem.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c index 0fe9f5422a..3769da7d21 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -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; |