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. Regards, Ross Levis. --- >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-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.
Sorry, I have found it. Didn't realize an OggS header can get stuffed in the middle of the comments. Cheers, Ross. --- >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-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.
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
> Sorry, I have found it. Didn't realize an OggS header can get stuffed > in the middle of the comments.You're not parsing pages, or packets. Which means if the comment spans a page boundary and you're not page/packet-aware then you will be seeing the framing data. jack. --- >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-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.