Skip to content

Commit c67e434

Browse files
StefanBruensufleisch
authored andcommitted
Do not warn when seeing FLAC picture block in Ogg files
1 parent 5d44f3e commit c67e434

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

taglib/ogg/flac/oggflacfile.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,28 @@ void Ogg::FLAC::File::scan()
290290
if(blockType == 1) {
291291
// debug("Ogg::FLAC::File::scan() -- Padding found");
292292
}
293+
else if(blockType == 2) {
294+
// debug("Ogg::FLAC::File::scan() -- Application block found");
295+
}
296+
else if(blockType == 3) {
297+
// debug("Ogg::FLAC::File::scan() -- Seek table found");
298+
}
293299
else if(blockType == 4) {
294300
// debug("Ogg::FLAC::File::scan() -- Vorbis-comments found");
295301
d->xiphCommentData = metadataHeader.mid(4, length);
296302
d->hasXiphComment = true;
297303
d->commentPacket = ipacket;
298304
}
299-
else if(blockType > 5) {
305+
else if(blockType == 5) {
306+
// debug("Ogg::FLAC::File::scan() -- Cuesheet found");
307+
}
308+
else if(blockType == 6) {
309+
// debug("Ogg::FLAC::File::scan() -- Picture found");
310+
}
311+
else if(blockType == 127) {
312+
debug("Ogg::FLAC::File::scan() -- Forbidden block type found");
313+
}
314+
else if(blockType > 6) {
300315
debug("Ogg::FLAC::File::scan() -- Unknown metadata block");
301316
}
302317
}

0 commit comments

Comments
 (0)