[ogg-dev] Seeking to granules in discontinuous streams

xiphmont at xiph.org xiphmont at xiph.org
Mon Feb 25 09:30:25 PST 2008


On Mon, Feb 25, 2008 at 6:02 AM, ogg.k.ogg.k at googlemail.com
<ogg.k.ogg.k at googlemail.com> wrote:

>  The Seek Algorithm bisects to the latest page with a granpos equal or
>  lower than the one we're seeking to. If you've got, say, two events at
>  granule 10, and the bisection finds the second one, it'll then bisect to
>  the later side, so it'll seek to that second page, missing the first. That
>  seems like the wrong thing to do. In my case, I wouldn't want that to
>  happen.

No, it seeks to the highest granpos position *preceeding* the requested time.

Monty


More information about the ogg-dev mailing list