[vorbis-dev] Feedback on Ogg Speex file format

Segher Boessenkool segher at chello.nl
Thu Aug 15 17:14:30 PDT 2002



> >So granulepos actually is the number of the first sample _not_
> >decodable using only this page and all pages before it?  Except
> >if adding this page to the ones before it would not increase
> >the number of samples decodable, in which case we set granulepos
> >to -1?  Oh, and special cases for begin/end of stream, of course.
> >
> >Something is redundant here, or very convoluted, at least ;)
> 
> No, it's the number of the last sample decodable from this page.
> Yes, it counts from 1, not 0 (because 0 is a valid value to mean
> 'no samples decodable yet', as the headers have).

Same thing, really.

> 
> By the way, rehuff seems to produce horribly screwed up streams
> with granulepos == -1 on every page (or at least most of them).
> You should probably fix that.

Heh yeah.  I use libogg, and I thought that would automatically do
the right thing, but of course I need to set correct granulepos
on the ogg_packet's I feed it.  Not that it itself sets it on the
packets it feeds _me_, but erm ;)

Thanks for the reminder,

<p>Segher

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