diff --git a/libavformat/mov.c b/libavformat/mov.c index 7cdc860458..804ea9db46 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4470,6 +4470,10 @@ static int mov_read_trak(MOVContext *c, AVIOContext *pb, MOVAtom atom) MOVStreamContext *sc; int ret; + if (c->is_still_picture_avif) { + return AVERROR_INVALIDDATA; + } + st = avformat_new_stream(c->fc, NULL); if (!st) return AVERROR(ENOMEM); st->id = -1;