1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-05 01:51:53 +02:00

lavf/oggparsevorbis: Use case-insensitive key compare for vorbis picture

Regression since 8d3630c540 where keys were changed
to not be touppered but the picture block strcmp was not changed to be case-insensitive.

Fixes ticket #8608.
This commit is contained in:
Mattias Wadman 2020-04-11 12:56:21 +02:00 committed by Carl Eugen Hoyos
parent 99360990a9
commit 9d21d18ec3

View File

@ -151,7 +151,7 @@ int ff_vorbis_comment(AVFormatContext *as, AVDictionary **m,
* 'METADATA_BLOCK_PICTURE'. This is the preferred and * 'METADATA_BLOCK_PICTURE'. This is the preferred and
* recommended way of embedding cover art within VorbisComments." * 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); int ret, len = AV_BASE64_DECODE_SIZE(vl);
char *pict = av_malloc(len); char *pict = av_malloc(len);