diff mbox series

[FFmpeg-devel,1/2] lavf/mov: Remove redundant code

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

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Jun Zhao Aug. 7, 2020, 1:37 p.m. UTC
From: Jun Zhao <barryjzhao@tencent.com>

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 libavformat/mov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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));