mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.
Original patch by David Moore.
This commit is contained in:
commit
a663121e10
3 changed files with 21 additions and 1 deletions
|
@ -1331,7 +1331,7 @@ audioop_ratecv_impl(PyModuleDef *module, Py_buffer *fragment, int width,
|
|||
/* 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