PR #22858 opened by jade (heartstopping) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22858 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22858.patch
This allows JPEG XL images to be recognized as valid attachments. Since JPEG is already widely used for cover art, JXL's support for lossless jpeg transcodes can decrease the total size of music collections. This fixes JXL cover art rendering in applications like mpv which rely on FFmpeg for demuxing. Signed-off-by: jade <[email protected]> >From daeedc3a6a5a1ba2eb6161b476706c621917acad Mon Sep 17 00:00:00 2001 From: jade <[email protected]> Date: Sun, 19 Apr 2026 08:45:40 -0400 Subject: [PATCH] avformat/id3v2: add image/jxl for JPEG XL image attachments This allows JPEG XL images to be recognized as valid attachments. Since JPEG is already widely used for cover art, JXL's support for lossless jpeg transcodes can decrease the total size of music collections. This fixes JXL cover art rendering in applications like mpv which rely on FFmpeg for demuxing. Signed-off-by: jade <[email protected]> --- libavformat/id3v2.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index c196549e00..1b481d302c 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -132,16 +132,17 @@ const char * const ff_id3v2_picture_types[21] = { }; const CodecMime ff_id3v2_mime_tags[] = { - { "image/gif", AV_CODEC_ID_GIF }, - { "image/jpeg", AV_CODEC_ID_MJPEG }, - { "image/jpg", AV_CODEC_ID_MJPEG }, - { "image/png", AV_CODEC_ID_PNG }, - { "image/tiff", AV_CODEC_ID_TIFF }, - { "image/bmp", AV_CODEC_ID_BMP }, - { "image/webp", AV_CODEC_ID_WEBP }, - { "JPG", AV_CODEC_ID_MJPEG }, /* ID3v2.2 */ - { "PNG", AV_CODEC_ID_PNG }, /* ID3v2.2 */ - { "", AV_CODEC_ID_NONE }, + { "image/gif", AV_CODEC_ID_GIF }, + { "image/jpeg", AV_CODEC_ID_MJPEG }, + { "image/jpg", AV_CODEC_ID_MJPEG }, + { "image/jxl", AV_CODEC_ID_JPEGXL }, + { "image/png", AV_CODEC_ID_PNG }, + { "image/tiff", AV_CODEC_ID_TIFF }, + { "image/bmp", AV_CODEC_ID_BMP }, + { "image/webp", AV_CODEC_ID_WEBP }, + { "JPG", AV_CODEC_ID_MJPEG }, /* ID3v2.2 */ + { "PNG", AV_CODEC_ID_PNG }, /* ID3v2.2 */ + { "", AV_CODEC_ID_NONE }, }; int ff_id3v2_match(const uint8_t *buf, const char *magic) -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
