提交 77b8c078 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-3882 please try this patch

上级 9de1e1ad
...@@ -886,6 +886,11 @@ switch_status_t rtmp_handle_data(rtmp_session_t *rsession) ...@@ -886,6 +886,11 @@ switch_status_t rtmp_handle_data(rtmp_session_t *rsession)
if (rsession->tech_pvt) { if (rsession->tech_pvt) {
uint16_t len = state->origlen; uint16_t len = state->origlen;
if (!rsession->tech_pvt->readbuf) {
return SWITCH_STATUS_FALSE;
}
switch_mutex_lock(rsession->tech_pvt->readbuf_mutex); switch_mutex_lock(rsession->tech_pvt->readbuf_mutex);
if (rsession->tech_pvt->maxlen && switch_buffer_inuse(rsession->tech_pvt->readbuf) > rsession->tech_pvt->maxlen * 40) { if (rsession->tech_pvt->maxlen && switch_buffer_inuse(rsession->tech_pvt->readbuf) > rsession->tech_pvt->maxlen * 40) {
rsession->tech_pvt->over_size++; rsession->tech_pvt->over_size++;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论