mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-20 18:01:08 +02:00
Try to fix payload length sent and bw fast calculation
This commit is contained in:
parent
8321054638
commit
45998785b7
|
@ -387,8 +387,9 @@ ngx_rtmp_bandwidth_detection_fast(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, n
|
|||
ngx_rtmp_set_ctx(s, bw_ctx, ngx_rtmp_bandwidth_detection_module);
|
||||
ngx_memzero(bw_ctx, sizeof(*bw_ctx));
|
||||
|
||||
bw_ctx->bw_begin_time2 = h->timestamp * 1000;
|
||||
bw_ctx->bw_begin_time2 = 0;
|
||||
bw_ctx->latency = acf->latency_min;
|
||||
bw_ctx->bytes_out2 = 0;
|
||||
}
|
||||
|
||||
/* Emulate accumulation between calls */
|
||||
|
|
|
@ -1026,7 +1026,7 @@ ngx_rtmp_create_bwcheck(ngx_rtmp_session_t *s, u_char *payload, size_t plength)
|
|||
|
||||
if (payload != NULL) {
|
||||
out_inf[0].data = payload;
|
||||
out_inf[0].len = ngx_strlen(payload);
|
||||
out_inf[0].len = plength;
|
||||
}
|
||||
trans = NGX_RTMP_BANDWIDTH_DETECTION_BWCHECK_TRANS;
|
||||
|
||||
|
|
Loading…
Reference in a new issue