diff --git a/ngx_rtmp_stat_module.c b/ngx_rtmp_stat_module.c
index ba1c646..325a2f1 100644
--- a/ngx_rtmp_stat_module.c
+++ b/ngx_rtmp_stat_module.c
@@ -555,7 +555,10 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll,
NGX_RTMP_STAT_L("");
NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
"%.3f", codec->frame_rate) - buf);
- NGX_RTMP_STAT_L("");
+ NGX_RTMP_STAT_L("");
+ NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
+ "%.0f", codec->video_data_rate) - buf);
+ NGX_RTMP_STAT_L("");
cname = ngx_rtmp_get_video_codec_name(codec->video_codec_id);
if (*cname) {
@@ -615,6 +618,12 @@ ngx_rtmp_stat_live(ngx_http_request_t *r, ngx_chain_t ***lll,
"%ui", codec->sample_rate) - buf);
NGX_RTMP_STAT_L("");
}
+ if (codec->audio_data_rate) {
+ NGX_RTMP_STAT_L("");
+ NGX_RTMP_STAT(buf, ngx_snprintf(buf, sizeof(buf),
+ "%0.2f", codec->audio_data_rate) - buf);
+ NGX_RTMP_STAT_L("");
+ }
NGX_RTMP_STAT_L("");
NGX_RTMP_STAT_L("\r\n");