summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-01 00:35:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-01 00:35:39 +0200
commit348319f5438fa2117cf19c42317a7d7875876981 (patch)
treeb2e7d935b82a6f4430fbe68f5cb8f61b7adb1057 /libavformat/mov.c
parentc2876c0181d170ed9d4d962599f5b65ba4e85178 (diff)
parenta8a90906fb0ad0f8d3c68a97f182528ee3b5198c (diff)
Merge commit 'a8a90906fb0ad0f8d3c68a97f182528ee3b5198c'
* commit 'a8a90906fb0ad0f8d3c68a97f182528ee3b5198c': mov: Correctly allocate ctts_data Conflicts: libavformat/mov.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 e3c2e1dee8..55be344633 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2303,7 +2303,7 @@ static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if (entries >= UINT_MAX / sizeof(*sc->ctts_data))
return AVERROR_INVALIDDATA;
av_freep(&sc->ctts_data);
- 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);