diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-01 00:35:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-01 00:35:39 +0200 |
commit | 348319f5438fa2117cf19c42317a7d7875876981 (patch) | |
tree | b2e7d935b82a6f4430fbe68f5cb8f61b7adb1057 | |
parent | c2876c0181d170ed9d4d962599f5b65ba4e85178 (diff) | |
parent | a8a90906fb0ad0f8d3c68a97f182528ee3b5198c (diff) | |
download | ffmpeg-348319f5438fa2117cf19c42317a7d7875876981.tar.gz |
Merge commit 'a8a90906fb0ad0f8d3c68a97f182528ee3b5198c'
* commit 'a8a90906fb0ad0f8d3c68a97f182528ee3b5198c':
mov: Correctly allocate ctts_data
Conflicts:
libavformat/mov.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mov.c | 2 |
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); |