Correctly read all 8 bytes for the metadata offset

This commit is contained in:
Stephen F. Booth 2013-11-29 08:21:23 -05:00
parent 69bcc52ef3
commit ebaecc47f4

View File

@ -168,7 +168,7 @@ void DSF::File::read(bool readProperties, AudioProperties::ReadStyle propertiesS
}
d->fileSize = readBlock(8).toInt64LE(0);
d->metadataOffset = readBlock(8).toUInt32LE(0);
d->metadataOffset = readBlock(8).toInt64LE(0);
// File is malformed or corrupted
if(d->metadataOffset > d->fileSize) {