mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-31 15:49:57 +00: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:
parent
5467742232
commit
620b1e7e98
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user