summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-10-01 18:34:58 -0500
committerDudemanguy <random342@airmail.cc>2023-10-02 17:49:48 +0000
commit05d79298b8f33f903071d0f173c28c719f9c5315 (patch)
tree9c0e4737fbdc8be86c0671531916c67f60a90d7d
parentdf758880e26ccdb084e2ad9dd33d8c1835ac4a3f (diff)
downloadmpv-05d79298b8f33f903071d0f173c28c719f9c5315.tar.bz2
mpv-05d79298b8f33f903071d0f173c28c719f9c5315.tar.xz
codec_tags: map some more image mimetypes
This only had jpeg and png in it strangely enough. Fixes #11592.
-rw-r--r--demux/codec_tags.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/demux/codec_tags.c b/demux/codec_tags.c
index 5cf7132d3a..d3b166f763 100644
--- a/demux/codec_tags.c
+++ b/demux/codec_tags.c
@@ -181,8 +181,15 @@ void mp_set_pcm_codec(struct mp_codec_params *c, bool sign, bool is_float,
}
static const char *const mimetype_to_codec[][2] = {
+ {"image/apng", "apng"},
+ {"image/avif", "av1"},
+ {"image/bmp", "bmp"},
+ {"image/gif", "gif"},
{"image/jpeg", "mjpeg"},
+ {"image/jxl", "jpegxl"},
{"image/png", "png"},
+ {"image/tiff", "tiff"},
+ {"image/webp", "webp"},
{0}
};