Message ID | tencent_549B16B09A750FDF6E57851F128DEDB5BE07@qq.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] track id could be zore | expand |
Context | Check | Description |
---|---|---|
andriy/configure_x86 | warning | Failed to apply patch |
On 8/12/2022 8:26 AM, 帝江-VII wrote: > 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; Bad patch formatting, aside, no, it cannot. Zero is not a valid track ID. - Derek
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];
Signed-off-by: yunfei.li <1195878682@qq.com> --- libavformat/mov.c | 2 -- 1 file changed, 2 deletions(-) -- 2.35.1.windows.2