[vorbis] comment header specification

Craig Dickson crdic at yahoo.com
Sun Feb 24 20:00:37 PST 2002


begin  Ross Levis  quotation:

> I'm writing my own comment reader by directly reading the ogg files (ie.
> not using the existing library).  There is something that seems odd to
> me.  The 32-bit number specifying the length of the next comment is
> sometimes wrong on large multi-line comments.
> 
> I have a test OGG here with a lot of text in a comment tag.  The comment
> size field says 9121, however, the actual comment size is 9171 bytes.
> 
> The strange thing is that VorbisComment & the Winamp plug-in handle it
> perfectly so I'm at a loss as to what is going on.
> 
> Can someone please explain.

At a wild guess -- could the way you read the comments lead to a
line-ending conversion problem? E.g. if the file's line endings are all
LF-only, are you reading them in a manner that causes your program to
see CR LF, and then counting that as two characters?

Craig

<p>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: part
Type: application/pgp-signature
Size: 233 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/vorbis/attachments/20020224/d81baaa1/part-0001.pgp


More information about the Vorbis mailing list