Re: Ogg encapsulation

Ralph Giles <giles-zeIfkxP3e/[email protected]> Sat, 3 Apr 2004 12:07:30 -0800
Newsgroups gmane.comp.graphics.mng.general
Message-ID <[email protected]>
On Fri, Apr 02, 2004 at 09:08:22AM +0200, Gerard Juyn wrote:

> > Can libmng be relied upon to ask for the length field atomically? From
> > my point of view as a user, if I have to insert a length field between
> > chunks, it's as easy to insert a (dummy) crc field. 
> 
> Yes. It will first pull the signature, and then do as I wrote earlier. Always 4 
> bytes to determine a chunk's total length, and then everything of that chunk 
> (including the crc currently). This will repeat until it has encountered the IEND 
> chunk in a PNG/JNG or the MEND chunk in a MNG. It may check for extranous 
> data after the closing chunk, but I'm not sure (off the top of my head).

Ok, that makes it easy. If you do add a 'no crc in datastream' flag 
we're done. If not, it's easy enough to insert things using the 
'suspension' mode read callback, as you suggest.

 -r

--
Send the message body "help" to [email protected]