Merge commit '9279826008b80daad7446950a821f32033ccd33f'
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Jul 2014 22:50:28 +0000 (00:50 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Jul 2014 22:50:40 +0000 (00:50 +0200)
* commit '9279826008b80daad7446950a821f32033ccd33f':
  id3v2enc: use a case-insensitive comparison for APIC picture type

Merged-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/id3v2enc.c

index 4d555b3d241c9e083ca41c8c00313845ef9d8210..8b804c4d4a168cdf3eb686ee69da25dcc88aedd4 100644 (file)
@@ -283,7 +283,7 @@ int ff_id3v2_write_apic(AVFormatContext *s, ID3v2EncContext *id3, AVPacket *pkt)
     /* get the picture type */
     e = av_dict_get(st->metadata, "comment", NULL, 0);
     for (i = 0; e && i < FF_ARRAY_ELEMS(ff_id3v2_picture_types); i++) {
-        if (strstr(ff_id3v2_picture_types[i], e->value) == ff_id3v2_picture_types[i]) {
+        if (!av_strcasecmp(e->value, ff_id3v2_picture_types[i])) {
             type = i;
             break;
         }