[FFmpeg-devel] [PATCH 1/2] lavf/mov: Remove redundant code
Jun Zhao
mypopydev at gmail.com
Fri Aug 7 16:37:33 EEST 2020
From: Jun Zhao <barryjzhao at tencent.com>
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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));
--
2.7.4
More information about the ffmpeg-devel
mailing list