Module: libav
Branch: master
Commit: 61cb9fac47498a38dfe7623f66aa1f3696e9158c

Author:    Matthieu Bouron <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Fri Jul 15 10:00:34 2016 +0200

mov: fix stream extradata_size allocation

Signed-off-by: Martin Storsjö <[email protected]>

---

 libavformat/mov.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 0cb3271..14be96e 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);
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to