Skip to content
Snippets Groups Projects
Commit 385ec296 authored by Mohammad Alsaleh's avatar Mohammad Alsaleh Committed by Anton Khirnov
Browse files

id3v2: Support v2.2 PIC


id3 v2.2 uses image format ("JPG","PNG") instead of mimetypes.

Currently, the attached picture is skipped because the format string
does not match a known picture mimetype.

This patch fixes this behaviour.

Signed-off-by: default avatarMohammad Alsaleh <msal@tormail.org>
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 1a4b5567
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,8 @@ const CodecMime ff_id3v2_mime_tags[] = {
{"image/png" , AV_CODEC_ID_PNG},
{"image/tiff", AV_CODEC_ID_TIFF},
{"image/bmp", AV_CODEC_ID_BMP},
{"JPG", AV_CODEC_ID_MJPEG}, /* ID3v2.2 */
{"PNG" , AV_CODEC_ID_PNG}, /* ID3v2.2 */
{"", AV_CODEC_ID_NONE},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment