Skip to content

Commit 5d44f3e

Browse files
committed
MP4: Support 64-bit atoms on Windows
The check for the size of long is no longer needed because since TagLib 2.0 the related fields are 64-bit on Windows too. Related to https://bugs.kde.org/show_bug.cgi?id=513531
1 parent 9c04298 commit 5d44f3e

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

taglib/mp4/mp4atom.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,7 @@ MP4::Atom::Atom(File *file)
7474
}
7575
else if(d->length == 1) {
7676
// The atom has a 64-bit length.
77-
if(const long long longLength = file->readBlock(8).toLongLong();
78-
longLength <= LONG_MAX) {
79-
// The actual length fits in long. That's always the case if long is 64-bit.
80-
d->length = static_cast<long>(longLength);
81-
}
82-
else {
83-
debug("MP4: 64-bit atoms are not supported");
84-
d->length = 0;
85-
file->seek(0, File::End);
86-
return;
87-
}
77+
d->length = file->readBlock(8).toLongLong();
8878
}
8979

9080
if(d->length < 8 || d->length > file->length() - d->offset) {

0 commit comments

Comments
 (0)