It's an option. It was left like this to match the Vorbis comment field
format.
Phil
<p>On Tue, Feb 11, 2003 at 02:16:03PM +0000, Phil Kerr
wrote:> A, very quick, hack to add another optional method could look something
> like this:
>
> 0 1 2 3
> 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
> | ..... |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> | bsz 0 | bsz 1 | Num Audio Channels |c|m|o|r|x|x|x|x|
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
> | URI string length |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> .. URI string |
> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> . Hash Key |
> +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
> | ..... |
>
> I've added a 'r - reference' flag and the URI and hash fields
should
> provide enough info. Is this close to what you had in mind?
URIs cannot have null characters in them, so why don't you simply have a
null terminated string for the URI and no length?
You could set an upperbound on the URI if you want to make sure it will
fit in 1 packet if you like.
<p><p><p>-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to
'vorbis-dev-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.