mirror of
				https://github.com/taglib/taglib.git
				synced 2025-11-04 08:45:10 -05:00 
			
		
		
		
	Correct the ID3v2 padding size calculation.
This commit is contained in:
		@ -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;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user