diff --git a/plugins/obs-outputs/librtmp/parseurl.c b/plugins/obs-outputs/librtmp/parseurl.c index 2088ee063..477fd77fa 100644 --- a/plugins/obs-outputs/librtmp/parseurl.c +++ b/plugins/obs-outputs/librtmp/parseurl.c @@ -198,7 +198,7 @@ parsehost: int RTMP_ParseURL2(const char *url, int *protocol, AVal *host, unsigned int *port, AVal *app) { - char *p, *end, *col, *ques, *slash; + char *p, *end, *col, /* *ques, */ *slash; RTMP_Log(RTMP_LOGDEBUG, "Parsing..."); @@ -255,7 +255,7 @@ parsehost: end = p + strlen(p); col = strchr(p, ':'); - ques = strchr(p, '?'); + // ques = strchr(p, '?'); slash = strchr(p, '/'); { diff --git a/plugins/obs-outputs/librtmp/rtmp.c b/plugins/obs-outputs/librtmp/rtmp.c index c153c6e64..7fc6d50f2 100644 --- a/plugins/obs-outputs/librtmp/rtmp.c +++ b/plugins/obs-outputs/librtmp/rtmp.c @@ -3923,7 +3923,7 @@ RTMP_ReadPacket(RTMP *r, RTMPPacket *packet) uint8_t hbuf[RTMP_MAX_HEADER_SIZE] = { 0 }; char *header = (char *)hbuf; int nSize, hSize, nToRead, nChunk; - int didAlloc = FALSE; + // int didAlloc = FALSE; RTMP_Log(RTMP_LOGDEBUG2, "%s: fd=%d", __FUNCTION__, r->m_sb.sb_socket); @@ -4050,7 +4050,7 @@ RTMP_ReadPacket(RTMP *r, RTMPPacket *packet) RTMP_Log(RTMP_LOGDEBUG, "%s, failed to allocate packet", __FUNCTION__); return FALSE; } - didAlloc = TRUE; + // didAlloc = TRUE; packet->m_headerType = (hbuf[0] & 0xc0) >> 6; } @@ -5339,8 +5339,8 @@ stopKeyframeSearch: if (recopy) { - len = (unsigned int)(ret) > buflen ? buflen : ret; - memcpy(buf, r->m_read.buf, len); + len = (unsigned int)(ret) > buflen ? buflen : (unsigned int)ret; + memcpy(buf, r->m_read.buf, len); r->m_read.bufpos = r->m_read.buf + len; r->m_read.buflen = ret - len; } diff --git a/plugins/obs-outputs/rtmp-stream.c b/plugins/obs-outputs/rtmp-stream.c index 735533ff6..b57261909 100644 --- a/plugins/obs-outputs/rtmp-stream.c +++ b/plugins/obs-outputs/rtmp-stream.c @@ -21,6 +21,7 @@ #include #include #include +#include #include "librtmp/rtmp.h" #include "librtmp/log.h" #include "flv-mux.h" @@ -505,7 +506,7 @@ static void check_to_drop_frames(struct rtmp_stream *stream) buffer_duration_usec = stream->last_dts_usec - first.dts_usec; if (buffer_duration_usec > stream->drop_threshold_usec) { drop_frames(stream); - blog(LOG_INFO, "dropping %lld worth of frames", + blog(LOG_INFO, "dropping %" PRId64 " worth of frames", buffer_duration_usec); } }