codec_tags: map some more image mimetypes

This only had jpeg and png in it strangely enough. Fixes #11592.
This commit is contained in:
Dudemanguy 2023-10-01 18:34:58 -05:00
parent df758880e2
commit 05d79298b8
1 changed files with 7 additions and 0 deletions

View File

@ -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] = { static const char *const mimetype_to_codec[][2] = {
{"image/apng", "apng"},
{"image/avif", "av1"},
{"image/bmp", "bmp"},
{"image/gif", "gif"},
{"image/jpeg", "mjpeg"}, {"image/jpeg", "mjpeg"},
{"image/jxl", "jpegxl"},
{"image/png", "png"}, {"image/png", "png"},
{"image/tiff", "tiff"},
{"image/webp", "webp"},
{0} {0}
}; };