summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2015-05-31 12:28:33 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-05-31 13:05:12 +0200
commita8a90906fb0ad0f8d3c68a97f182528ee3b5198c (patch)
tree5be1f71e00be1f0d0476e577878794eb0bdfbb72 /libavformat/mov.c
parentf261a55d72753bcec33369954809732abae8f8f7 (diff)
mov: Correctly allocate ctts_data
It can be reallocated. CC: libav-stable@libav.org
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 33e1054368..fbbfef0bf3 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2035,7 +2035,7 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return 0;
if (entries >= UINT_MAX / sizeof(*sc->ctts_data))
return AVERROR_INVALIDDATA;
- sc->ctts_data = av_malloc(entries * sizeof(*sc->ctts_data));
+ sc->ctts_data = av_realloc(NULL, entries * sizeof(*sc->ctts_data));
if (!sc->ctts_data)
return AVERROR(ENOMEM);