diff options
Diffstat (limited to 'demux/codec_tags.c')
-rw-r--r-- | demux/codec_tags.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/demux/codec_tags.c b/demux/codec_tags.c index 5cf7132d3a..d118fbe560 100644 --- a/demux/codec_tags.c +++ b/demux/codec_tags.c @@ -45,17 +45,17 @@ static const char *lookup_tag(int type, uint32_t tag) } -/* +/* * As seen in the following page: - * - * https://web.archive.org/web/20220406060153/ - * http://dream.cs.bath.ac.uk/researchdev/wave-ex/bformat.html - * + * + * <https://web.archive.org/web/20220406060153/ + * http://dream.cs.bath.ac.uk/researchdev/wave-ex/bformat.html> + * * Note that the GUID struct in the above citation has its * integers encoded in little-endian format, which means that * the unsigned short and unsigned long entries need to be * byte-flipped for this encoding. - * + * * In theory only the first element of this array should be used, * however some encoders incorrectly encoded the GUID byte-for-byte * and thus the second one exists as a fallback. @@ -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} }; |