[FFmpeg-devel] [PATCH] lavf/mov: fix stream extradata_size allocation

Matthieu Bouron matthieu.bouron at gmail.com
Wed Jul 13 23:51:23 EEST 2016


From: Matthieu Bouron <matthieu.bouron at stupeflix.com>

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

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 2712364..3843ceb 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2336,7 +2336,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     if (!sc->extradata)
         return AVERROR(ENOMEM);
 
-    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);
 
-- 
2.9.0



More information about the ffmpeg-devel mailing list