OSDN Git Service

lavf/mov: fix stream extradata_size allocation
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>
Wed, 13 Jul 2016 20:46:44 +0000 (22:46 +0200)
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>
Thu, 14 Jul 2016 07:18:39 +0000 (09:18 +0200)
Fixes CID 1363963.

libavformat/mov.c

index 2712364..3843ceb 100644 (file)
@@ -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);