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? Thanks, Christopher -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20050621/df61d387/attachment.htm
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