diff options
Diffstat (limited to 'libavcodec/mem.c')
-rw-r--r-- | libavcodec/mem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mem.c b/libavcodec/mem.c index a9b5e0afa8..0c876a851e 100644 --- a/libavcodec/mem.c +++ b/libavcodec/mem.c @@ -29,6 +29,9 @@ void *av_malloc(unsigned int size) { void *ptr; + +// if(size==0) return NULL; + #if defined (HAVE_MEMALIGN) ptr = memalign(16,size); /* Why 64? |