From 05d79298b8f33f903071d0f173c28c719f9c5315 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sun, 1 Oct 2023 18:34:58 -0500 Subject: [PATCH] codec_tags: map some more image mimetypes This only had jpeg and png in it strangely enough. Fixes #11592. --- demux/codec_tags.c | 7 +++++++ 1 file changed, 7 insertions(+) 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} };