Padding shorter than $tagwriter->paddedlength

Post Reply
James Heinrich
getID3() v1 developer
Posts: 1477
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Padding shorter than $tagwriter->paddedlength

Post by James Heinrich » Sat Feb 26, 2011 7:04 pm

When writing a tag shorter that the original padding everything seems to be ok.
But there is going something wrong when trying to increase the $tagwriter->paddedlength value.

File created with LAME --pad-id3v2-size 2048
padding start: 89
lenght: 2048

After writing a tag with $tagwriter->paddedlength = 20480;
padding start: 14991
lenght: 369
Padding is shorter than $tagwriter->paddedlength

WaldoMonster
getID3() contributor
Posts: 112
Joined: Mon Apr 01, 2002 12:20 am
Location: Netherlands
Contact:

Re: Padding shorter than $tagwriter->paddedlength

Post by WaldoMonster » Sat Feb 26, 2011 9:53 pm

Sorry my mistake!
Use: $tagwriter->id3v2_paddedlength from the write.php script!

WaldoMonster
getID3() contributor
Posts: 112
Joined: Mon Apr 01, 2002 12:20 am
Location: Netherlands
Contact:

Re: Padding shorter than $tagwriter->paddedlength

Post by WaldoMonster » Sat Feb 26, 2011 10:04 pm

With $tagwriter->id3v2_paddedlength it is possible to increase the padding size.
However when once increased the padding size is there a way to decrease the padding size?
This could be useful when updating an attached picture with a smaller attached picture.

Post Reply