diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-07-02 22:41:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-07-03 18:40:37 +0000 |
commit | 9279826008b80daad7446950a821f32033ccd33f (patch) | |
tree | 5af5cc1d6bc309ee190c46d4f4d8c2e6a1146946 | |
parent | 0955e57ad07640574fc20ce0bea3c0b83982ada1 (diff) | |
download | ffmpeg-9279826008b80daad7446950a821f32033ccd33f.tar.gz |
id3v2enc: use a case-insensitive comparison for APIC picture type
-rw-r--r-- | libavformat/id3v2enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/id3v2enc.c b/libavformat/id3v2enc.c index df00f05b24..89181c26a0 100644 --- a/libavformat/id3v2enc.c +++ b/libavformat/id3v2enc.c @@ -21,6 +21,7 @@ #include <stdint.h> #include <string.h> +#include "libavutil/avstring.h" #include "libavutil/dict.h" #include "libavutil/intreadwrite.h" #include "avformat.h" @@ -185,7 +186,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; } |