commit | 1e95340bc378d883609d41da7176e24d1f3e9025 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat May 30 00:53:26 2015 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sat May 30 00:53:26 2015 +0300 |
tree | afc88bac012e662c5569bd03c9f9a7dcfee976c0 | |
parent | 9d1de8a2a983e6baa39dbc8587b1730e8ce89956 [diff] [blame] |
Issue #24326: Fixed audioop.ratecv() with non-default weightB argument. Original patch by David Moore.
diff --git a/Modules/audioop.c b/Modules/audioop.c index 8a3a275..0282c7e 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c
@@ -1130,7 +1130,7 @@ /* divide weightA and weightB by their greatest common divisor */ d = gcd(weightA, weightB); weightA /= d; - weightA /= d; + weightB /= d; if ((size_t)nchannels > PY_SIZE_MAX/sizeof(int)) { PyErr_SetString(PyExc_MemoryError,