Message ID | 1596807454-17939-1-git-send-email-mypopydev@gmail.com |
---|---|
State | Accepted |
Commit | 856363710f035b128767b1deb3926b38a089fd91 |
Headers | show |
Series | [FFmpeg-devel,1/2] lavf/mov: Remove redundant code | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
diff --git a/libavformat/mov.c b/libavformat/mov.c index 1532e74..808ef7c 100644 --- a/libavformat/mov.c +++ b/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));