aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--taglib/mp4/mp4properties.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/taglib/mp4/mp4properties.cpp b/taglib/mp4/mp4properties.cpp
index e863a375..faa43c27 100644
--- a/taglib/mp4/mp4properties.cpp
+++ b/taglib/mp4/mp4properties.cpp
@@ -175,8 +175,8 @@ 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 + 8) {