aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2020-08-07 20:48:42 +0800
committerJun Zhao <barryjzhao@tencent.com>2020-09-12 17:27:26 +0800
commit856363710f035b128767b1deb3926b38a089fd91 (patch)
treeb090170e792cb49a7b66d80876576df70cf71bd7
parentdc16aeb3904654c95d613d6277c27a9461ef1991 (diff)
downloadffmpeg-856363710f035b128767b1deb3926b38a089fd91.tar.gz
lavf/mov: Remove redundant code
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r--libavformat/mov.c2
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));