Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ These changes are available on the `master` branch, but have not yet been releas
([#2779](https://github.com/Pycord-Development/pycord/pull/2779))
- Fixed GIF-based `Sticker` returning the wrong `url`.
([#2781](https://github.com/Pycord-Development/pycord/pull/2781))
- Fixed `VoiceClient` crashing randomly while receiving audio
([#2800](https://github.com/Pycord-Development/pycord/pull/2800))

### Changed

Expand Down
2 changes: 1 addition & 1 deletion discord/voice_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def _decrypt_xsalsa20_poly1305_lite(self, header, data):

@staticmethod
def strip_header_ext(data):
if data[0] == 0xBE and data[1] == 0xDE and len(data) > 4:
if len(data) > 4 and data[0] == 0xBE and data[1] == 0xDE:
_, length = struct.unpack_from(">HH", data)
offset = 4 + length * 4
data = data[offset:]
Expand Down