]> git.sesse.net Git - ffmpeg/commitdiff
lavf/oggparsevorbis: Use case-insensitive key compare for vorbis picture
authorMattias Wadman <mattias.wadman@gmail.com>
Sat, 11 Apr 2020 10:56:21 +0000 (12:56 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 11 Apr 2020 10:56:21 +0000 (12:56 +0200)
Regression since 8d3630c5402fdda2889fe4f74f7dcdd50ebca654 where keys were changed
to not be touppered but the picture block strcmp was not changed to be case-insensitive.

Fixes ticket #8608.

libavformat/oggparsevorbis.c

index 8dd27e777063f3e1abbe1a4ba3e3059359cd39e5..27d2c686b6966fd2a5dc0b8f6a003f18e0084eb1 100644 (file)
@@ -151,7 +151,7 @@ int ff_vorbis_comment(AVFormatContext *as, AVDictionary **m,
              * 'METADATA_BLOCK_PICTURE'. This is the preferred and
              * recommended way of embedding cover art within VorbisComments."
              */
-            if (!strcmp(tt, "METADATA_BLOCK_PICTURE") && parse_picture) {
+            if (!av_strcasecmp(tt, "METADATA_BLOCK_PICTURE") && parse_picture) {
                 int ret, len = AV_BASE64_DECODE_SIZE(vl);
                 char *pict = av_malloc(len);