mirror of https://git.ffmpeg.org/ffmpeg.git
Make av_realloc(0) behave like our av_malloc(0)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ea7f73c52e
commit
91ff05f6ac
|
@ -132,7 +132,7 @@ void *av_realloc(void *ptr, size_t size)
|
||||||
diff= ((char*)ptr)[-1];
|
diff= ((char*)ptr)[-1];
|
||||||
return (char*)realloc((char*)ptr - diff, size + diff) + diff;
|
return (char*)realloc((char*)ptr - diff, size + diff) + diff;
|
||||||
#else
|
#else
|
||||||
return realloc(ptr, size);
|
return realloc(ptr, size + !size);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue