Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert 91dc3d39f0 ('Move counter variable in processMsg into Opus condition.'). #2825

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/murmur/Server.cpp
Expand Up @@ -978,6 +978,7 @@ void Server::processMsg(ServerUser *u, const char *data, int len) {
return;

QByteArray qba, qba_npos;
unsigned int counter;
char buffer[UDP_PACKET_SIZE];
PacketDataStream pdi(data + 1, len - 1);
PacketDataStream pds(buffer+1, UDP_PACKET_SIZE-1);
Expand All @@ -998,9 +999,11 @@ void Server::processMsg(ServerUser *u, const char *data, int len) {
}
}

// Read the sequence number.
pdi >> counter;

// Skip to the end of the voice data.
if ((type >> 5) != MessageHandler::UDPVoiceOpus) {
unsigned int counter;
do {
counter = pdi.next8();
pdi.skip(counter & 0x7f);
Expand Down