fixed avc level in stat

This commit is contained in:
Roman Arutyunyan 2013-12-21 11:19:04 +04:00
parent 3a5f9eea78
commit 0a5b06609b

View file

@ -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>");