Hello everyone, I'm programming something using ogg vorbis and i was wondering how I could get a packet from a logical bitstream when this packet is over several pages. let's say I made a call to ogg_stream_pagein, then ogg_stream_packetout, but the packet is incomplete and continued in the next page(s). If I get the following page and I call ogg_stream_pagein again, how can i get the beginning of my packet back. It seems to that only one page is accessible at a time through an ogg_stream_state... ******************* Pierre-Henri Quelen phq@laposte.net "Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 €/mn) ; tél : 08 92 68 13 50 (0,34€/mn)" --- >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.
On Thu, Dec 06, 2001 at 04:40:22PM +0100, Pierre-Henri Quelen wrote:> let's say I made a call to ogg_stream_pagein, then > ogg_stream_packetout, but the packet is incomplete > and continued in the next page(s). If I get the > following page and I call ogg_stream_pagein again, > how can i get the beginning of my packet back. It > seems to that only one page is accessible at a > time through an ogg_stream_state...If the packet is incomplete, ogg_stream_packetout returns nothing and caches the incomplete packet. Only when the packet is complete will ogg_stream_packetout flush that packet back to the application (reassembled, for your convenience). Monty --- >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.