aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-10-04 09:52:02 +0300
committerMartin Storsjö <martin@martin.st>2013-10-05 00:00:43 +0300
commitb698542ad83284fbb8c22404e3cafeb2dd739d38 (patch)
tree65f47ad22467a9be6f85bac642be59f9df394473
parent6cc133ec58b829e5535ebfc5294ebadedcdb3adb (diff)
downloadffmpeg-b698542ad83284fbb8c22404e3cafeb2dd739d38.tar.gz
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>
-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;