Check also for the deprecated GIF type

This commit is contained in:
Lukáš Lalinský 2012-01-08 15:54:15 +01:00
parent c237998983
commit b981b6dde7
2 changed files with 3 additions and 2 deletions

View File

@ -44,7 +44,8 @@ namespace TagLib {
enum Format {
JPEG = TypeJPEG,
PNG = TypePNG,
BMP = TypeBMP
BMP = TypeBMP,
GIF = TypeGIF
};
CoverArt(Format format, const ByteVector &data);

View File

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