Commit 5babe63c by ziyue

修复Windows编译问题

parent 7d8b212a
......@@ -8,11 +8,13 @@
* may be found in the AUTHORS file in the root of the source tree.
*/
#include <algorithm>
#include "RtmpProtocol.h"
#include "Rtmp/utils.h"
#include "RtmpMediaSource.h"
using namespace toolkit;
using namespace std;
using namespace toolkit;
#define C1_DIGEST_SIZE 32
#define C1_KEY_SIZE 128
......@@ -752,7 +754,7 @@ void RtmpProtocol::handle_chunk(RtmpPacket::Ptr packet) {
case MSG_WIN_SIZE: {
//如果窗口太小,会导致发送sendAcknowledgement时无限递归:https://github.com/ZLMediaKit/ZLMediaKit/issues/1839
_windows_size = std::max(load_be32(&chunk_data.buffer[0]), 32 * 1024U);
_windows_size = max(load_be32(&chunk_data.buffer[0]), 32 * 1024U);
TraceL << "MSG_WIN_SIZE:" << _windows_size;
break;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论