aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2013-10-04 09:52:02 +0300
committerReinhard Tartler <siretart@tauware.de>2014-01-05 17:31:06 -0500
commitd149c14a2263cf17e09a18e577b7a99043e26fbc (patch)
tree269f172bef060a9c2ec3e0352b670ee5c759c501 /libavformat
parent5bbee02ae04f3c49ae7f76f510fb1702761c0f15 (diff)
downloadffmpeg-d149c14a2263cf17e09a18e577b7a99043e26fbc.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> (cherry picked from commit b698542ad83284fbb8c22404e3cafeb2dd739d38) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
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 6b89a2d1ba..8c547067b7 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2313,7 +2313,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;