[Vorbis-dev] ogg_stream_flush

Ralph Giles giles at xiph.org
Tue Feb 21 09:55:51 PST 2006


On Tue, Feb 21, 2006 at 12:47:22PM -0500, Monty wrote:

> > Ha. The lacing_vals table is going to get quite a bit bigger if we're 
> > going to remember granulepos conversion for popular codecs. :)
> 
> ???  This is encode side.  And if you're paging packets from a codec, you
> better bloody well know how to parse the granpos (you'll need that to
> mux).

I thought you were talking about the libogg api. You didn't specify.

In particular, the current 4kB default threshold is inefficient for high 
bitrate video (not that it matters much). Mike took a look at adding a 
call to change the default, but the best ABI-compatible place we could 
find to store the new value was off the end of the lacing_vals array in 
the ogg_stream_state struct. It's allocated opaquely and has a maximum 
length in its intended use, so it seemed the safest place to extend the 
structure.

 -r


More information about the Vorbis-dev mailing list