commit | a40689e6efccb13065a0e2db22c06208482dea6f | [log] [tgz] |
---|---|---|
author | Timothy B. Terriberry <tterribe@xiph.org> | Fri Sep 07 06:01:53 2012 -0700 |
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | Sat Sep 08 02:17:53 2012 -0400 |
tree | d363df43e866bcf1059f05a6d4e05a34e12ab63a | |
parent | 84dd1cf9b701d45124770b795656a98aa53222dd [diff] |
Remove large multistream stack buffers. This avoids allocating any buffers on the stack that depend on the total channel count. Such buffers could easily exceed the size of the NONTHREADSAFE_PSEUDOSTACK. It also checks the frame_size argument in both the encoder and decoder to avoid allocating large stack buffers for opus_encode() calls that would fail anyway or opus_decode() calls that would never use all that space anyway.