diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-09 11:13:46 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-09 11:13:46 +0200 |
commit | 7611d9a8cf65c30738fd711704f50e9aa2f76ad8 (patch) | |
tree | 0c5fdb29a4a83bd7d083bf9fb4df352322b01f7a /Python/mysnprintf.c | |
parent | 1ce9595e87b70e0d72815d1c5dd17c9a000c8df5 (diff) | |
parent | 8135de80f799431d041878315840ef3a7110d0a3 (diff) | |
download | cpython-git-7611d9a8cf65c30738fd711704f50e9aa2f76ad8.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/mysnprintf.c')
0 files changed, 0 insertions, 0 deletions