Commit 6c8942cd authored by Matthieu Bouron's avatar Matthieu Bouron

lavf/mov: fix stream extradata_size allocation

Fixes CID 1363963.
parent f41e37b8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment