diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-05-07 15:28:07 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-05-07 16:21:47 +0200 |
commit | 91ff05f6ac5c65a6cd3701d5a7cdcfb6ccfd87e4 (patch) | |
tree | b43a0e0b236b379d232ed66fd37c90cbd9494ddc /libavutil/mem.c | |
parent | ea7f73c52ea82b792568127ee7e7671c2640bbcd (diff) | |
download | ffmpeg-91ff05f6ac5c65a6cd3701d5a7cdcfb6ccfd87e4.tar.gz |
Make av_realloc(0) behave like our av_malloc(0)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/mem.c')
-rw-r--r-- | libavutil/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/mem.c b/libavutil/mem.c index 965daa93c8..83e8c35561 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -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 } |