From 61cb9fac47498a38dfe7623f66aa1f3696e9158c Mon Sep 17 00:00:00 2001
From: Matthieu Bouron <matthieu.bouron@stupeflix.com>
Date: Fri, 15 Jul 2016 10:00:34 +0200
Subject: [PATCH] mov: fix stream extradata_size allocation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Martin Storsjö <martin@martin.st>
---
 libavformat/mov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 0cb3271d442..14be96ecd71 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1900,7 +1900,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
         return AVERROR(ENOMEM);
 
     sc->stsd_count = entries;
-    sc->extradata_size = av_mallocz_array(sc->stsd_count, sizeof(sc->extradata_size));
+    sc->extradata_size = av_mallocz_array(sc->stsd_count, sizeof(*sc->extradata_size));
     if (!sc->extradata_size)
         return AVERROR(ENOMEM);
 
-- 
GitLab