demux_lavf: detect ico as images

This commit is contained in:
Guido Cella 2024-01-18 17:43:02 +01:00 committed by Dudemanguy
parent 146bef059a
commit 5f7ce41371
1 changed files with 1 additions and 0 deletions

View File

@ -671,6 +671,7 @@ static bool is_image(AVStream *st, bool attached_picture, const AVInputFormat *a
bstr_endswith0(bstr0(avif->name), "_pipe") ||
strcmp(avif->name, "alias_pix") == 0 ||
strcmp(avif->name, "gif") == 0 ||
strcmp(avif->name, "ico") == 0 ||
strcmp(avif->name, "image2pipe") == 0 ||
(st->codecpar->codec_id == AV_CODEC_ID_AV1 && st->nb_frames == 1)
);