[Vorbis-dev] Samples

Ralph Giles giles at xiph.org
Tue Jun 21 09:18:37 PDT 2005


On Tue, Jun 21, 2005 at 11:10:44AM -0500, Christopher Egner wrote:

> In the libogg example, theres a line that says
> "bout=(samples<convsize?samples:convsize)" I'm lost as to why we'd do this.
> I thought samples was an accurate value, so why do you limit it to the
> smaller of the two?

The convbuffer the example decoder (this is libvorbis decoder_example.c) 
is a fixed size; the min() is to avoid overwriting the end of that 
array.

 -r


More information about the Vorbis-dev mailing list