mirror of
https://github.com/ossrs/srs.git
synced 2025-02-14 20:31:56 +00:00
merge from srs2
This commit is contained in:
commit
5f915aa959
2 changed files with 10 additions and 2 deletions
|
@ -1287,6 +1287,7 @@ Winlin
|
|||
[bug #515]: https://github.com/ossrs/srs/issues/515
|
||||
[bug #511]: https://github.com/ossrs/srs/issues/511
|
||||
[bug #518]: https://github.com/ossrs/srs/issues/518
|
||||
[bug #541]: https://github.com/ossrs/srs/issues/541
|
||||
[bug #xxxxxxxxxx]: https://github.com/ossrs/srs/issues/xxxxxxxxxx
|
||||
|
||||
[exo #828]: https://github.com/google/ExoPlayer/pull/828
|
||||
|
|
|
@ -1514,10 +1514,17 @@ int SrsProtocol::on_recv_message(SrsCommonMessage* msg)
|
|||
{
|
||||
srs_warn("accept chunk size %d, but should in [%d, %d], "
|
||||
"@see: https://github.com/ossrs/srs/issues/160",
|
||||
pkt->chunk_size, SRS_CONSTS_RTMP_MIN_CHUNK_SIZE,
|
||||
SRS_CONSTS_RTMP_MAX_CHUNK_SIZE);
|
||||
pkt->chunk_size, SRS_CONSTS_RTMP_MIN_CHUNK_SIZE, SRS_CONSTS_RTMP_MAX_CHUNK_SIZE);
|
||||
}
|
||||
|
||||
// @see: https://github.com/ossrs/srs/issues/541
|
||||
if (pkt->chunk_size < SRS_CONSTS_RTMP_MIN_CHUNK_SIZE) {
|
||||
ret = ERROR_RTMP_CHUNK_SIZE;
|
||||
srs_error("chunk size should be %d+, value=%d. ret=%d",
|
||||
SRS_CONSTS_RTMP_MIN_CHUNK_SIZE, pkt->chunk_size, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
in_chunk_size = pkt->chunk_size;
|
||||
srs_trace("input chunk size to %d", pkt->chunk_size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue