From 06ebc0bf9a6401733a4ce1310325de19f631819a Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Thu, 26 Sep 2013 16:34:04 +0300 Subject: lavf: Allocate arrays with av_realloc if they will be realloced later MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pointers returned from av_malloc can't in general be passed to av_realloc. Signed-off-by: Martin Storsjö --- libavformat/concat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/concat.c') diff --git a/libavformat/concat.c b/libavformat/concat.c index 4682d8a260..416bbf5fc3 100644 --- a/libavformat/concat.c +++ b/libavformat/concat.c @@ -74,7 +74,7 @@ static av_cold int concat_open(URLContext *h, const char *uri, int flags) return AVERROR(ENAMETOOLONG); } - if (!(nodes = av_malloc(sizeof(*nodes) * len))) { + if (!(nodes = av_realloc(NULL, sizeof(*nodes) * len))) { return AVERROR(ENOMEM); } else data->nodes = nodes; -- cgit v1.2.3