aboutsummaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö2013-10-04 09:52:02 +0300
committerMartin Storsjö2013-10-05 00:00:43 +0300
commitb698542ad83284fbb8c22404e3cafeb2dd739d38 (patch)
tree65f47ad22467a9be6f85bac642be59f9df394473 /libavformat
parent6cc133ec58b829e5535ebfc5294ebadedcdb3adb (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.c2
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;