Skip to content

Commit 0a5b066

Browse files
committed
fixed avc level in stat
1 parent 3a5f9ee commit 0a5b066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngx_rtmp_stat_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll,
519519
if (codec->avc_level) {
520520
NGX_RTMP_STAT_L("<level>");
521521
NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
522-
"%ui", codec->avc_level) - buf);
522+
"%.1f", codec->avc_level / 10.) - buf);
523523
NGX_RTMP_STAT_L("</level>");
524524
}
525525
NGX_RTMP_STAT_L("</video>");

0 commit comments

Comments
 (0)