diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-05-31 12:28:33 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-05-31 13:05:12 +0200 |
commit | a8a90906fb0ad0f8d3c68a97f182528ee3b5198c (patch) | |
tree | 5be1f71e00be1f0d0476e577878794eb0bdfbb72 /libavformat/mov.c | |
parent | f261a55d72753bcec33369954809732abae8f8f7 (diff) | |
download | ffmpeg-a8a90906fb0ad0f8d3c68a97f182528ee3b5198c.tar.gz |
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.c | 2 |
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); |