[FFmpeg-devel] [PATCH] track id could be zore

帝江-VII 1195878682 at qq.com
Fri Aug 12 10:26:35 EEST 2022


Signed-off-by: yunfei.li <1195878682 at qq.com>
---
 libavformat/mov.c | 2 --
 1 file changed, 2 deletions(-)


diff --git a/libavformat/mov.c b/libavformat/mov.c
index 6ee6ed0950..3b0c328e6a 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4916,8 +4916,6 @@ static int mov_read_tfhd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
     flags = avio_rb24(pb);
 
     track_id = avio_rb32(pb);
-    if (!track_id)
-        return AVERROR_INVALIDDATA;
     for (i = 0; i < c->trex_count; i++)
         if (c->trex_data[i].track_id == track_id) {
             trex = &c->trex_data[i];
-- 
2.35.1.windows.2


More information about the ffmpeg-devel mailing list