1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Merge remote-tracking branch 'qatar/master'

* qatar/master:
  mem: Make av_strdup allocate using av_realloc

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-17 08:13:12 +02:00
commit 21b3563dcb

View File

@ -258,7 +258,7 @@ char *av_strdup(const char *s)
char *ptr = NULL;
if (s) {
int len = strlen(s) + 1;
ptr = av_malloc(len);
ptr = av_realloc(NULL, len);
if (ptr)
memcpy(ptr, s, len);
}