demux_lavf: detect ico as images

This commit is contained in:
Guido Cella authored and Dudemanguy committed 2024-01-19 23:56:21 +00:00
1 parent 146bef059a
commit 5f7ce41371
1 file changed
+1
+1
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)
);