]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
spxdec: Check frame sizes.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 20 Jun 2015 21:32:13 +0000 (23:32 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 7 Feb 2016 12:46:40 +0000 (13:46 +0100)
We pass a buffer of fixed size MAX_FRAME_SIZE (defined to 2000)
to the speex decoder. This sanity check makes sure we never overrun
the buffer. Although this adds one function call per output frame,
the overhead is in the noise.

Also document MAX_FRAME_SIZE while at it.


No differences found