aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-04 00:50:28 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-04 00:50:40 +0200
commitb28fcbba0c278f9db5d29c9629aa3f70a4b48cd7 (patch)
tree7aac4424699dd4d7b2c1fe4bd455bc115e01076e
parentd73823286d5f38afc9c656fdeb943148afb35c5e (diff)
parent9279826008b80daad7446950a821f32033ccd33f (diff)
downloadffmpeg-b28fcbba0c278f9db5d29c9629aa3f70a4b48cd7.tar.gz
Merge commit '9279826008b80daad7446950a821f32033ccd33f'
* commit '9279826008b80daad7446950a821f32033ccd33f': id3v2enc: use a case-insensitive comparison for APIC picture type Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/id3v2enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/id3v2enc.c b/libavformat/id3v2enc.c
index 4d555b3d24..8b804c4d4a 100644
--- a/libavformat/id3v2enc.c
+++ b/libavformat/id3v2enc.c
@@ -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;
}