This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Fix all malloc(0) issues
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer
14 years ago
parent
0fea3b7b80
commit
5a36783bc4
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavutil/mem.c
+ 2
- 0
libavutil/mem.c
View File
@@ -71,6 +71,8 @@ void *av_malloc(size_t size)
/* let's disallow possible ambiguous cases */
if(size > (INT_MAX-32) )
return NULL;
else if(!size)
size= 1;
#if CONFIG_MEMALIGN_HACK
ptr = malloc(size+32);
Write
Preview
Loading…
Cancel
Save