summaryrefslogtreecommitdiff
path: root/libavformat/concat.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-09-26 16:34:04 +0300
committerMartin Storsjö <martin@martin.st>2013-09-26 23:13:53 +0300
commit06ebc0bf9a6401733a4ce1310325de19f631819a (patch)
tree4c7969cc52a496a94812721c7cfe887afb11b2a1 /libavformat/concat.c
parent1af78b865b66acb8020c54262f12aa41ad47e05c (diff)
lavf: Allocate arrays with av_realloc if they will be realloced later
Pointers returned from av_malloc can't in general be passed to av_realloc. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/concat.c')
-rw-r--r--libavformat/concat.c2
1 files changed, 1 insertions, 1 deletions
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;