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

Derek Buitenhuis derek.buitenhuis at gmail.com
Fri Aug 12 18:00:19 EEST 2022


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


More information about the ffmpeg-devel mailing list