1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Fix build failed.

This commit is contained in:
winlin 2022-06-09 20:32:45 +08:00
parent fa78cf3354
commit 3ed4aed824
4 changed files with 11 additions and 5 deletions

View file

@ -1041,7 +1041,6 @@ srs_error_t srs_av_base64_encode(std::string plaintext, std::string& cipher)
cipher.clear();
uint32_t val = 0;
int di = 0;
int si = 0;
int n = (plaintext.length() / 3) * 3;
uint8_t* p = (uint8_t*)plaintext.c_str();
@ -1055,7 +1054,6 @@ srs_error_t srs_av_base64_encode(std::string plaintext, std::string& cipher)
cipher += encoder[val&0x3f];
si += 3;
di += 4;
}
int remain = plaintext.length() - si;