summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-02-09 11:12:36 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2013-02-09 11:12:36 +0200
commit219003dca6b3a43d884fbfdf0d812d335110d40f (patch)
tree9be58549b2fcbe0844df9947fea02c00d5314b36 /Python/pythonrun.c
parent417fe7b3c87ec464a21d947d244c73b218cb2d80 (diff)
parent5437c12d71a932e9a5b384468f94d96984b88655 (diff)
downloadcpython-219003dca6b3a43d884fbfdf0d812d335110d40f.tar.gz
Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX. * ratecv() no more crashes on empty input fragment. * Fixed an integer overflow in ratecv(). * Fixed an integer overflow in add() and bias() for 32-bit samples. * reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples. * max() and rms() no more returns negative result for 32-bit sample -0x80000000. * minmax() now returns correct max value for 32-bit sample -0x80000000. * avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000. * add() now can return 32-bit sample -0x80000000.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions