diff --git a/taglib/mp4/mp4atom.cpp b/taglib/mp4/mp4atom.cpp index 0a1eb587..25d0f0c4 100644 --- a/taglib/mp4/mp4atom.cpp +++ b/taglib/mp4/mp4atom.cpp @@ -95,13 +95,6 @@ MP4::Atom::Atom(File *file) } d->name = header.mid(4, 4); - for(int i = 0; i < 4; ++i) { - if(const char ch = d->name.at(i); (ch < ' ' || ch > '~') && ch != '\251') { - debug("MP4: Invalid atom type"); - d->length = 0; - file->seek(0, File::End); - } - } for(auto c : containers) { if(d->name == c) { @@ -131,6 +124,8 @@ MP4::Atom::Atom(File *file) } } + debug("MP4: Skipping atom '" + d->name + "'"); + file->seek(d->offset + d->length); }