提交 867c5847 编写于 作者: J jp9000

obs-outputs: Fix a few warnings in librtmp

上级 a6c8a923
......@@ -198,6 +198,8 @@ GetDigestOffset2(uint8_t *handshake, unsigned int len)
__FUNCTION__, res);
exit(1);
}
(void)len;
return res;
}
......@@ -764,7 +766,9 @@ HandShake(RTMP * r, int FP9HandShake)
RC4_handle keyIn = 0;
RC4_handle keyOut = 0;
#ifndef _DEBUG
int32_t *ip;
#endif
uint32_t uptime;
uint8_t clientbuf[RTMP_SIG_SIZE + 4], *clientsig=clientbuf+4;
......@@ -1139,7 +1143,10 @@ SHandShake(RTMP * r)
RC4_handle keyOut = 0;
int FP9HandShake = FALSE;
int encrypted;
#ifndef _DEBUG
int32_t *ip;
#endif
uint8_t clientsig[RTMP_SIG_SIZE];
uint8_t serverbuf[RTMP_SIG_SIZE + 4], *serversig = serverbuf+4;
......
......@@ -1384,7 +1384,7 @@ WriteN(RTMP *r, const char *buffer, int n)
if (r->Link.rc4keyOut)
{
if (n > sizeof(buf))
if (n > (int)sizeof(buf))
encrypted = (char *)malloc(n);
else
encrypted = (char *)buf;
......@@ -2344,6 +2344,8 @@ AV_clear(RTMP_METHOD *vals, int num)
static int
b64enc(const unsigned char *input, int length, char *output, int maxsize)
{
(void)maxsize;
#ifdef USE_POLARSSL
size_t buf_size = maxsize;
if(base64_encode((unsigned char *) output, &buf_size, input, length) == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册