Merge commit 'b446f0e98f85e2e931b476e52b319f1c49244660'

* commit 'b446f0e98f85e2e931b476e52b319f1c49244660':
  mov: Do not try to parse multiple stsd for the same track

See 8b43ee4054

Merged-by: James Almer <jamrial@gmail.com>
pull/273/head
James Almer 7 years ago
commit d99c3af707
  1. 4
      libavformat/mov.c

@ -2371,9 +2371,11 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
} }
if (sc->extradata) { if (sc->extradata) {
av_log(c->fc, AV_LOG_ERROR, "Duplicate STSD\n"); av_log(c->fc, AV_LOG_ERROR,
"Duplicate stsd found in this track.\n");
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
/* Prepare space for hosting multiple extradata. */ /* Prepare space for hosting multiple extradata. */
sc->extradata = av_mallocz_array(entries, sizeof(*sc->extradata)); sc->extradata = av_mallocz_array(entries, sizeof(*sc->extradata));
sc->extradata_size = av_mallocz_array(entries, sizeof(*sc->extradata_size)); sc->extradata_size = av_mallocz_array(entries, sizeof(*sc->extradata_size));

Loading…
Cancel
Save