mov: fix stream extradata_size allocation

Signed-off-by: Martin Storsjö <martin@martin.st>
pull/241/head
Matthieu Bouron 8 years ago committed by Martin Storsjö
parent 0b1bd1b205
commit 61cb9fac47
  1. 2
      libavformat/mov.c

@ -1900,7 +1900,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return AVERROR(ENOMEM);
sc->stsd_count = entries;
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);

Loading…
Cancel
Save