mirror of https://github.com/mpv-player/mpv
demux_lavf: detect ico as images
This commit is contained in:
parent
146bef059a
commit
5f7ce41371
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue