mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.
Original patch by David Moore.
This commit is contained in:
parent
1ad08a5555
commit
50451eb912
3 changed files with 21 additions and 1 deletions
|
@ -1320,7 +1320,7 @@ audioop_ratecv_impl(PyModuleDef *module, Py_buffer *fragment, int width, int nch
|
|||
/* 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue