From b698542ad83284fbb8c22404e3cafeb2dd739d38 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Fri, 4 Oct 2013 09:52:02 +0300 Subject: mov: Don't allocate arrays with av_malloc that will be realloced MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC: libav-stable@libav.org Signed-off-by: Martin Storsjö --- libavformat/mov.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') 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; -- cgit v1.2.3