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
Make av_realloc(0) behave like our av_malloc(0)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.8
Michael Niedermayer
14 years ago
parent
ea7f73c52e
commit
91ff05f6ac
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavutil/mem.c
+ 1
- 1
libavutil/mem.c
View File
@@ -132,7 +132,7 @@ void *av_realloc(void *ptr, size_t size)
diff= ((char*)ptr)[-1];
return (char*)realloc((char*)ptr - diff, size + diff) + diff;
#else
return realloc(ptr, size);
return realloc(ptr, size
+ !size
);
#endif
}
Write
Preview
Loading…
Cancel
Save