[vorbis-dev] granulepos

Segher Boessenkool segher at wanadoo.nl
Sun Feb 18 15:16:54 PST 2001



Michael Smith wrote:
> 
> >It's a 64 bit unsigned integer, so a value of '-1' is really
> >0xFFFFFFFFFFFFFFFF. Other places (like the stream length) this means
> >infintity, but I don't know why you'd use that for the granulepos field of
> >a page header.
> 
> -1 has a special meaning - it's used when no packets end on that page. Otherwise, your description is correct.

When getting a _packet_ (not page) granulepos is -1 if it is not the last
packets to end on its page.

Cheers,

Segher

--- >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