aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-05-07 15:28:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-07 16:21:47 +0200
commit91ff05f6ac5c65a6cd3701d5a7cdcfb6ccfd87e4 (patch)
treeb43a0e0b236b379d232ed66fd37c90cbd9494ddc
parentea7f73c52ea82b792568127ee7e7671c2640bbcd (diff)
downloadffmpeg-91ff05f6ac5c65a6cd3701d5a7cdcfb6ccfd87e4.tar.gz
Make av_realloc(0) behave like our av_malloc(0)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/mem.c2
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
}