mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Correct the ID3v2 padding size calculation.
This commit is contained in:
parent
091ab9dee0
commit
a25e1e9f90
@ -619,7 +619,7 @@ ByteVector ID3v2::Tag::render(int version) const
|
||||
// Compute the amount of padding, and append that to tagData.
|
||||
// TODO: Should be calculated in offset_t in taglib2.
|
||||
|
||||
long paddingSize = d->header.tagSize() - tagData.size();
|
||||
long paddingSize = d->header.tagSize() - (tagData.size() - Header::size());
|
||||
|
||||
if(paddingSize <= 0) {
|
||||
paddingSize = MinPaddingSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user