[Vorbis-dev] ogg_packet -> ogg_page

Ralph Giles giles at xiph.org
Tue Oct 19 07:24:15 PDT 2004


On Mon, Oct 18, 2004 at 04:52:20PM +0200, Christoph Rupp wrote:
> 
> 		// try to extract a page
> 		ogg_stream_pageout(os, og)
> 
> ogg_stream_pageout() always seems to return a valid ogg page - however, 
> it does "return" the page, but it does not "extract" the page from the 
> stream - if i call ogg_stream_pageout() more then once, i always get the 
> same ogg_page.

Are you checking the return code of Ogg_stream_pageout()? It will only
fill out the og struct if it decided to flush a page; by default it waits
until it has 4kB (except for teh first page, which it flushes after one 
packet.) If og isn't being updated it might look like it was retunring the 
same page multiple times.

The return code would tell you if this happened.

 -r


More information about the Vorbis-dev mailing list