lavf/mov: Remove redundant code

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
pull/350/head
Jun Zhao 4 years ago
parent dc16aeb390
commit 856363710f
  1. 2
      libavformat/mov.c

@ -587,7 +587,7 @@ static int mov_read_dref(MOVContext *c, AVIOContext *pb, MOVAtom atom)
entries > (atom.size - 1) / MIN_DATA_ENTRY_BOX_SIZE + 1 ||
entries >= UINT_MAX / sizeof(*sc->drefs))
return AVERROR_INVALIDDATA;
sc->drefs_count = 0;
av_free(sc->drefs);
sc->drefs_count = 0;
sc->drefs = av_mallocz(entries * sizeof(*sc->drefs));

Loading…
Cancel
Save