diff --git a/captcha/audio.py b/captcha/audio.py index 31a300e..577f52c 100644 --- a/captcha/audio.py +++ b/captcha/audio.py @@ -112,7 +112,7 @@ def change_sound(body, level=1): if v > 128: v = (v - 128) * level + 128 v = max(int(v), 128) - v = min(v, 256) + v = min(v, 255) elif v < 128: v = 128 - (128 - v) * level v = min(int(v), 128)