diff --git a/libavformat/mov.c b/libavformat/mov.c index 0d2ca6b9f5..77108738a4 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -4440,6 +4440,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;