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

@ -1093,6 +1093,11 @@ void srs_update_rtmp_server(int nb_conn, SrsKbps* kbps)
nb_tcp_total = 0;
nb_tcp_mem = 0;
nb_udp4 = 0;
(void)nb_socks;
(void)nb_tcp_mem;
(void)nb_tcp4_hashed;
(void)nb_tcp_orphans;
#endif
int nb_tcp_estab = 0;

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;

View file

@ -16,7 +16,7 @@
#include <srs_protocol_utility.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_protocol_rtmp_stack.hpp>
#include <srs_protocol_rtmp_handshake.hpp>
#include <srs_protocol_stream.hpp>
#include <srs_protocol_kbps.hpp>