diff options
author | Martin Storsjö | 2013-10-04 09:52:02 +0300 |
---|---|---|
committer | Martin Storsjö | 2013-10-05 00:00:43 +0300 |
commit | b698542ad83284fbb8c22404e3cafeb2dd739d38 (patch) | |
tree | 65f47ad22467a9be6f85bac642be59f9df394473 /libavformat | |
parent | 6cc133ec58b829e5535ebfc5294ebadedcdb3adb (diff) |
mov: Don't allocate arrays with av_malloc that will be realloced
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-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 e1f2db28d9..60fb999d81 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2373,7 +2373,7 @@ static int mov_read_trun(MOVContext *c, AVIOContext *pb, MOVAtom atom) if (!sc->ctts_count && sc->sample_count) { /* Complement ctts table if moov atom doesn't have ctts atom. */ - ctts_data = av_malloc(sizeof(*sc->ctts_data)); + ctts_data = av_realloc(NULL, sizeof(*sc->ctts_data)); if (!ctts_data) return AVERROR(ENOMEM); sc->ctts_data = ctts_data; |