id3v2: support JPEG APIC with incorrect (image/jpg) MIME type
authorPiotr Bandurski <ami_stuff@o2.pl>
Tue, 27 Mar 2012 22:13:32 +0000 (00:13 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 28 Mar 2012 00:37:18 +0000 (02:37 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/id3v2.c

index 9ccd6e7..3de993e 100644 (file)
@@ -127,6 +127,7 @@ const char *ff_id3v2_picture_types[21] = {
 const CodecMime ff_id3v2_mime_tags[] = {
     {"image/gif" , CODEC_ID_GIF},
     {"image/jpeg", CODEC_ID_MJPEG},
+    {"image/jpg" , CODEC_ID_MJPEG},
     {"image/png" , CODEC_ID_PNG},
     {"image/tiff", CODEC_ID_TIFF},
     {"",           CODEC_ID_NONE},