Re: Delayed pages ?
| Newsgroups | gmane.comp.multimedia.ogg.theora.devel |
|---|---|
| Message-ID | <[email protected]> |
> Ok. Why I still don't understand is why I get several pages at once. I mean > that I put a packet, I check for a page: nothing. If I recursively do that, > then the first time I would get a page, I get several of them. Shouldn't it > be a page and then no more until I add more packets ? You mean if you call twice ogg_stream_pageout, without adding a packet in between, you first get nothing, then a page ? That would be odd indeed. However, Theora packets can vary in size, so it's not inconceivable that: stuff small packet in stream no page ready stuff small packet in stream still no page ready, packets are small stuff large packet (eg, keyframe) in stream lots of pages go out as the packet was large and fits on several pages Is this what's happening ?