Browse code

Merge commit '9279826008b80daad7446950a821f32033ccd33f'

* commit '9279826008b80daad7446950a821f32033ccd33f':
id3v2enc: use a case-insensitive comparison for APIC picture type

Merged-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2014/07/04 07:50:28
Showing 1 changed files
... ...
@@ -283,7 +283,7 @@ int ff_id3v2_write_apic(AVFormatContext *s, ID3v2EncContext *id3, AVPacket *pkt)
283 283
     /* get the picture type */
284 284
     e = av_dict_get(st->metadata, "comment", NULL, 0);
285 285
     for (i = 0; e && i < FF_ARRAY_ELEMS(ff_id3v2_picture_types); i++) {
286
-        if (strstr(ff_id3v2_picture_types[i], e->value) == ff_id3v2_picture_types[i]) {
286
+        if (!av_strcasecmp(e->value, ff_id3v2_picture_types[i])) {
287 287
             type = i;
288 288
             break;
289 289
         }