From: Lukáš Lalinský Date: Sun, 8 Jan 2012 14:54:15 +0000 (+0100) Subject: Check also for the deprecated GIF type X-Git-Tag: v1.8beta~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b981b6dde7eb1e1ee86c64b01ed1099420d1d9fd;p=taglib Check also for the deprecated GIF type --- diff --git a/taglib/mp4/mp4coverart.h b/taglib/mp4/mp4coverart.h index 6ba06e7b..804ab785 100644 --- a/taglib/mp4/mp4coverart.h +++ b/taglib/mp4/mp4coverart.h @@ -44,7 +44,8 @@ namespace TagLib { enum Format { JPEG = TypeJPEG, PNG = TypePNG, - BMP = TypeBMP + BMP = TypeBMP, + GIF = TypeGIF }; CoverArt(Format format, const ByteVector &data); diff --git a/taglib/mp4/mp4tag.cpp b/taglib/mp4/mp4tag.cpp index 0b427bd3..fc75fb45 100644 --- a/taglib/mp4/mp4tag.cpp +++ b/taglib/mp4/mp4tag.cpp @@ -283,7 +283,7 @@ MP4::Tag::parseCovr(MP4::Atom *atom, TagLib::File *file) debug("MP4: Unexpected atom \"" + name + "\", expecting \"data\""); break; } - if(flags == TypeJPEG || flags == TypePNG || flags == TypeBMP) { + if(flags == TypeJPEG || flags == TypePNG || flags == TypeBMP || flags == TypeGIF) { value.append(MP4::CoverArt(MP4::CoverArt::Format(flags), data.mid(pos + 16, length - 16))); }