mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
migarate from winlinvip to srs org
This commit is contained in:
parent
b3bd007f0d
commit
115daa3cc1
117 changed files with 323 additions and 323 deletions
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <srs_rtmp_buffer.hpp>
|
||||
#include <srs_rtmp_utility.hpp>
|
||||
|
||||
// for srs-librtmp, @see https://github.com/winlinvip/simple-rtmp-server/issues/213
|
||||
// for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213
|
||||
#ifndef _WIN32
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
@ -1008,7 +1008,7 @@ int SrsProtocol::do_iovs_send(iovec* iovs, int size)
|
|||
int ret = ERROR_SUCCESS;
|
||||
|
||||
// the limits of writev iovs.
|
||||
// for srs-librtmp, @see https://github.com/winlinvip/simple-rtmp-server/issues/213
|
||||
// for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213
|
||||
#ifndef _WIN32
|
||||
static int limits = sysconf(_SC_IOV_MAX);
|
||||
#else
|
||||
|
@ -1375,7 +1375,7 @@ int SrsProtocol::recv_interlaced_message(SrsCommonMessage** pmsg)
|
|||
SrsChunkStream* chunk = NULL;
|
||||
|
||||
// use chunk stream cache to get the chunk info.
|
||||
// @see https://github.com/winlinvip/simple-rtmp-server/issues/249
|
||||
// @see https://github.com/simple-rtmp-server/srs/issues/249
|
||||
if (cid < SRS_PERF_CHUNK_STREAM_CACHE) {
|
||||
// chunk stream cache hit.
|
||||
srs_verbose("cs-cache hit, cid=%d", cid);
|
||||
|
@ -1586,7 +1586,7 @@ int SrsProtocol::read_message_header(SrsChunkStream* chunk, char fmt)
|
|||
// 0x04 where: message_type=4(protocol control user-control message)
|
||||
// 0x00 0x06 where: event Ping(0x06)
|
||||
// 0x00 0x00 0x0d 0x0f where: event data 4bytes ping timestamp.
|
||||
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/98
|
||||
// @see: https://github.com/simple-rtmp-server/srs/issues/98
|
||||
if (chunk->cid == RTMP_CID_ProtocolControl && fmt == RTMP_FMT_TYPE1) {
|
||||
srs_warn("accept cid=2, fmt=1 to make librtmp happy.");
|
||||
} else {
|
||||
|
@ -1756,7 +1756,7 @@ int SrsProtocol::read_message_header(SrsChunkStream* chunk, char fmt)
|
|||
pp[0] = *p++;
|
||||
|
||||
// always use 31bits timestamp, for some server may use 32bits extended timestamp.
|
||||
// @see https://github.com/winlinvip/simple-rtmp-server/issues/111
|
||||
// @see https://github.com/simple-rtmp-server/srs/issues/111
|
||||
timestamp &= 0x7fffffff;
|
||||
|
||||
/**
|
||||
|
@ -1947,12 +1947,12 @@ int SrsProtocol::on_recv_message(SrsCommonMessage* msg)
|
|||
|
||||
// for some server, the actual chunk size can greater than the max value(65536),
|
||||
// so we just warning the invalid chunk size, and actually use it is ok,
|
||||
// @see: https://github.com/winlinvip/simple-rtmp-server/issues/160
|
||||
// @see: https://github.com/simple-rtmp-server/srs/issues/160
|
||||
if (pkt->chunk_size < SRS_CONSTS_RTMP_MIN_CHUNK_SIZE
|
||||
|| pkt->chunk_size > SRS_CONSTS_RTMP_MAX_CHUNK_SIZE)
|
||||
{
|
||||
srs_warn("accept chunk size %d, but should in [%d, %d], "
|
||||
"@see: https://github.com/winlinvip/simple-rtmp-server/issues/160",
|
||||
"@see: https://github.com/simple-rtmp-server/srs/issues/160",
|
||||
pkt->chunk_size, SRS_CONSTS_RTMP_MIN_CHUNK_SIZE,
|
||||
SRS_CONSTS_RTMP_MAX_CHUNK_SIZE);
|
||||
}
|
||||
|
@ -2150,7 +2150,7 @@ int SrsConnectAppPacket::decode(SrsStream* stream)
|
|||
if (!stream->empty()) {
|
||||
srs_freep(args);
|
||||
|
||||
// see: https://github.com/winlinvip/simple-rtmp-server/issues/186
|
||||
// see: https://github.com/simple-rtmp-server/srs/issues/186
|
||||
// the args maybe any amf0, for instance, a string. we should drop if not object.
|
||||
SrsAmf0Any* any = NULL;
|
||||
if ((ret = SrsAmf0Any::discovery(stream, &any)) != ERROR_SUCCESS) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue