[ID3 Dev] Why is footer not included in total size?

Ray Manning ray at homeautomationdev.com
Wed Nov 15 18:33:01 PST 2006



> -----Original Message-----
> From: Jim [mailto:jmartin92 at comcast.net]
> Sent: Wednesday, November 15, 2006 10:23 AM
> To: id3v2 at id3.org
> Subject: Re: [ID3 Dev] Why is footer not included in total size?
>
<snip>
>
> I'm not sure we are in agreement.  Even if the tag size includes
> the footer
> size, I think the footer flag is useful.  If you have a prepended header
> with a given size (including the footer if it is present), there are two
> ways you can know that it contains a footer at the end.  One is to have a
> flag that tells you it does.  The other way would be to compare
> the last 10
> bytes of what should be the tag data and compare it against the format of
> the footer.  Personally, I think checking a flag bit is much easier to do.
> It's like you said - if you aren't changing the size or other
> flags, you can
> skip processing the footer entirely.  But you can't do that if you don't
> have a flag that tells you those last 10 bytes are footer data and not tag
> data.  (You have to at least do the comparison of those byte against the
> footer format to see if it is a footer or not.)
>

I missed the 'subtle' point that padding is mutually exclusive with a
footer.

You are correct. You would need to have the flag or shape the footer like a
frame - which might be interesting but I wont go there.


>
> PS--I've done a little work with reading/writing other types of
> tags (APEv2,
> ID3v1, Lyrics3 v2) so if you are looking for any help with your tool
> development feel free to email me directly.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: id3v2-unsubscribe at id3.org
> For additional commands, e-mail: id3v2-help at id3.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: id3v2-unsubscribe at id3.org
For additional commands, e-mail: id3v2-help at id3.org



More information about the ID3v2 mailing list