mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Correctly write the metadata offset in absence of ID3v2 tag
This commit is contained in:
parent
dad73ebfc5
commit
0c2e21024f
@ -127,9 +127,9 @@ bool DSF::File::save()
|
||||
d->fileSize = newFileSize;
|
||||
}
|
||||
|
||||
// Update the metadata offset
|
||||
// Update the metadata offset to 0 since there is no longer a tag
|
||||
if(d->metadataOffset != newMetadataOffset) {
|
||||
insert(ByteVector::fromUInt64LE(newMetadataOffset), 20, 8);
|
||||
insert(ByteVector::fromUInt64LE(0ULL), 20, 8);
|
||||
d->metadataOffset = newMetadataOffset;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user