diff options
author | Jun Zhao <barryjzhao@tencent.com> | 2020-08-07 20:48:42 +0800 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2020-09-12 17:27:26 +0800 |
commit | 856363710f035b128767b1deb3926b38a089fd91 (patch) | |
tree | b090170e792cb49a7b66d80876576df70cf71bd7 | |
parent | dc16aeb3904654c95d613d6277c27a9461ef1991 (diff) | |
download | ffmpeg-856363710f035b128767b1deb3926b38a089fd91.tar.gz |
lavf/mov: Remove redundant code
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 690beb10ce..9462af743a 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)); |