summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-07-13 22:46:44 +0200
committerMatthieu Bouron <matthieu.bouron@stupeflix.com>2016-07-14 09:18:39 +0200
commit6c8942cdfb8b7228237842cdef2615100e0f1d59 (patch)
tree018a751c53a3b6348f3c36ea8f5f1223ef6642da /libavformat
parentf41e37b84f3d57c29d4a2a21f9337159135b981d (diff)
lavf/mov: fix stream extradata_size allocation
Fixes CID 1363963.
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 2712364f4d..3843cebe67 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);