diff --git a/3rdparty/taglib/mp4/mp4properties.cpp b/3rdparty/taglib/mp4/mp4properties.cpp index 4bb4d67b..faa43c27 100644 --- a/3rdparty/taglib/mp4/mp4properties.cpp +++ b/3rdparty/taglib/mp4/mp4properties.cpp @@ -175,11 +175,11 @@ MP4::Properties::read(File *file, Atoms *atoms) debug("MP4: Atom 'trak.mdia.mdhd' is smaller than expected"); return; } - unit = data.toLongLong(28U); - length = data.toLongLong(36U); + unit = data.toUInt(28U); + length = data.toLongLong(32U); } else { - if(data.size() < 24 + 4) { + if(data.size() < 24 + 8) { debug("MP4: Atom 'trak.mdia.mdhd' is smaller than expected"); return; }