* This describes the image type.
*/
enum Format {
- JPEG = TypeJPEG,
- PNG = TypePNG,
- BMP = TypeBMP,
- GIF = TypeGIF
+ JPEG = TypeJPEG,
+ PNG = TypePNG,
+ BMP = TypeBMP,
+ GIF = TypeGIF,
+ Unknown = TypeImplicit,
};
CoverArt(Format format, const ByteVector &data);
debug("MP4: Unexpected atom \"" + name + "\", expecting \"data\"");
break;
}
- if(flags == TypeJPEG || flags == TypePNG || flags == TypeBMP || flags == TypeGIF) {
+ if(flags == TypeJPEG || flags == TypePNG || flags == TypeBMP || flags == TypeGIF || flags == TypeImplicit) {
value.append(MP4::CoverArt(MP4::CoverArt::Format(flags),
data.mid(pos + 16, length - 16)));
}
+ else {
+ debug("MP4: Unknown covr format " + String::number(flags));
+ }
pos += length;
}
if(value.size() > 0)