» Welcome Guest
[ Log In :: Register ]

 

[ Track this topic :: Email this topic :: Print this topic ]

Topic: No ending $00 in id3v2 tags< Next Oldest | Next Newest >
coma
Unregistered





Posted: Oct. 07 2002,21:09

I tried Mp3 tag studio for adding year info to id3v2 tags. When it writes the id3v2 tags the strings do no longer end with a zero ($00).

Why is that? Is there are way to make it add the zero?

According to this document all strings in tags are supposed to end with zeroes: http://id3lib.sourceforge.net/id3/id3v2.4.0-structure.txt
Back to top
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Oct. 08 2002,00:23

First of all, Mp3/Tag Studio is writing ID3v2.3 tags, and the (incomplete) standard document you are referring to addresses the ID3v2.4 standard.

Second, I cannot find any place, even in that document, where it says that all strings must be null-terminated? Could you please point it out to me?

Third, if a string is the last data in a frame, it does not need to be null-terminated, it is optional (hence, since it saves space not to null-terminate these strings, I choose not to).

If you have any program that cannot read these frames, it is non-standard-compliant and broken.

3:-)

--------------
Software author and website owner
Back to top
Profile PM WEB 
coma
Unregistered





Posted: Oct. 08 2002,15:12

Ok thanks for clearing that out. I was misled to beleive 2.4 was the latest standard.

Have no programs that fail, just was wary changing lots of my mp3's if some future program would require the trailing zeroes.

Regards,

coma
Back to top
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Oct. 08 2002,19:22

ID3v2.4 is the latest standard, but many programs have problems reading ID3v2.4 tags, and can only read the much more common ID3v2.3 tags. Therefore, Mp3/Tag Studio writes ID3v2.3 tags (like many other programs also have chosen to), although it can read ID3v2.4 tags, and all other ID3v2 tag versions without any problems.

In any case, I cannot find any place in the 2.4 standard documents that requires these strings to be null-terminated either?

Edited by Magnus Brading on Oct. 08 2002,19:24

--------------
Software author and website owner
Back to top
Profile PM WEB 
3 replies since Oct. 07 2002,21:09 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]