Skip to content

Commit

Permalink
fix tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslan-ilesik committed Jul 8, 2024
1 parent 705598e commit c3e7426
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dpp/discordvoiceclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,8 +771,8 @@ void discord_voice_client::read_ready()
return;
}

const uint8_t* decrypted_data = encrypted_data;
size_t decrypted_data_len = encrypted_data_len - crypto_box_MACBYTES;
const uint8_t* decrypted_data = encrypted_data;
size_t decrypted_data_len = encrypted_data_len - crypto_box_MACBYTES;
if (const bool uses_extension [[maybe_unused]] = (buffer[0] >> 4) & 0b0001) {

Check notice on line 776 in src/dpp/discordvoiceclient.cpp

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/dpp/discordvoiceclient.cpp#L776

Variable 'uses_extension' is assigned a value that is never used.
/* Skip the RTP Extensions */
size_t ext_len = 0;
Expand All @@ -783,8 +783,8 @@ void discord_voice_client::read_ready()
ext_len = sizeof(uint32_t) * ext_len_in_words;
}
constexpr size_t ext_header_len = sizeof(uint16_t) * 2;
decrypted_data += ext_header_len + ext_len;
decrypted_data_len -= ext_header_len + ext_len;
decrypted_data += ext_header_len + ext_len;
decrypted_data_len -= ext_header_len + ext_len;
}

/*
Expand Down

0 comments on commit c3e7426

Please sign in to comment.