[FFmpeg-cvslog] lavf/mov: Remove redundant code

Jun Zhao git at videolan.org
Sat Sep 12 12:31:52 EEST 2020


ffmpeg | branch: master | Jun Zhao <barryjzhao at tencent.com> | Fri Aug  7 20:48:42 2020 +0800| [856363710f035b128767b1deb3926b38a089fd91] | committer: Jun Zhao

lavf/mov: Remove redundant code

Signed-off-by: Jun Zhao <barryjzhao at tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=856363710f035b128767b1deb3926b38a089fd91
---

 libavformat/mov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list