[vorbis-dev] packet over several pages

Monty xiphmont at xiph.org
Tue Dec 11 11:23:04 PST 2001



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 at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list