lavf/mov: fix stream extradata_size allocation

Fixes CID 1363963.
This commit is contained in:
Matthieu Bouron
2016-07-13 22:46:44 +02:00
parent f41e37b84f
commit 6c8942cdfb

View 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);