]> granicus.if.org Git - taglib/commitdiff
Check also for the deprecated GIF type
authorLukáš Lalinský <lalinsky@gmail.com>
Sun, 8 Jan 2012 14:54:15 +0000 (15:54 +0100)
committerLukáš Lalinský <lalinsky@gmail.com>
Sun, 8 Jan 2012 14:54:15 +0000 (15:54 +0100)
taglib/mp4/mp4coverart.h
taglib/mp4/mp4tag.cpp

index 6ba06e7bfb49b44fd9a62067ca3990fece10bafe..804ab7852194df7e29d9efc9415fef171fcb8c80 100644 (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);
index 0b427bd3c2f6b84d1b1fa3c36e5992068d94e184..fc75fb456a14294003962ef6927029198ea3804d 100644 (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)));
     }