mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Check also for the deprecated GIF type
This commit is contained in:
parent
c237998983
commit
b981b6dde7
@ -44,7 +44,8 @@ namespace TagLib {
|
||||
enum Format {
|
||||
JPEG = TypeJPEG,
|
||||
PNG = TypePNG,
|
||||
BMP = TypeBMP
|
||||
BMP = TypeBMP,
|
||||
GIF = TypeGIF
|
||||
};
|
||||
|
||||
CoverArt(Format format, const ByteVector &data);
|
||||
|
@ -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)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user