Skip to content
Permalink
Browse files

Merge PR #2825: Revert 91dc3d3 ('Move counter variable in processMsg …

…into Opus condition.').
  • Loading branch information...
mkrautz committed Feb 7, 2017
2 parents 4400a80 + a9330a4 commit 2fb5ee70913662859d8153300337daf09f53b8dd
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/murmur/Server.cpp
@@ -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);
@@ -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);

0 comments on commit 2fb5ee7

Please sign in to comment.
You can’t perform that action at this time.