mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-15 00:11:08 +02:00
fixed avc level in stat
This commit is contained in:
parent
3a5f9eea78
commit
0a5b06609b
|
@ -519,7 +519,7 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll,
|
|||
if (codec->avc_level) {
|
||||
NGX_RTMP_STAT_L("<level>");
|
||||
NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
|
||||
"%ui", codec->avc_level) - buf);
|
||||
"%.1f", codec->avc_level / 10.) - buf);
|
||||
NGX_RTMP_STAT_L("</level>");
|
||||
}
|
||||
NGX_RTMP_STAT_L("</video>");
|
||||
|
|
Loading…
Reference in a new issue