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))); }