From f8097173abe5f251aac00631de10f85ef8b7090d Mon Sep 17 00:00:00 2001 From: Sergey Dryabzhinsky Date: Sat, 19 Sep 2015 03:15:38 +0300 Subject: [PATCH] Frame rate are double not int --- ngx_rtmp_codec_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ngx_rtmp_codec_module.c b/ngx_rtmp_codec_module.c index 2ecc9fe..e29cd28 100644 --- a/ngx_rtmp_codec_module.c +++ b/ngx_rtmp_codec_module.c @@ -889,7 +889,7 @@ ngx_rtmp_codec_meta_data(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, if (v.width != -1) ctx->width = (ngx_uint_t) v.width; if (v.height != -1) ctx->height = (ngx_uint_t) v.height; if (v.duration != -1) ctx->duration = (ngx_uint_t) v.duration; - if (v.frame_rate != -1) ctx->frame_rate = (ngx_uint_t) v.frame_rate; + if (v.frame_rate != -1) ctx->frame_rate = (double) v.frame_rate; if (v.video_data_rate != -1) ctx->video_data_rate = (ngx_uint_t) v.video_data_rate; if (v.video_codec_id_n != -1) ctx->video_codec_id = (ngx_uint_t) v.video_codec_id_n; if (v.audio_data_rate != -1) ctx->audio_data_rate = (ngx_uint_t) v.audio_data_rate; @@ -899,7 +899,7 @@ ngx_rtmp_codec_meta_data(ngx_rtmp_session_t *s, ngx_rtmp_header_t *h, if (v.profile[0] != '\0') ngx_memcpy(ctx->profile, v.profile, sizeof(v.profile)); if (v.level[0] != '\0') ngx_memcpy(ctx->level, v.level, sizeof(v.level)); - ngx_log_debug8(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, + ngx_log_debug8(NGX_LOG_DEBUG, s->connection->log, 0, "codec: data frame: " "width=%ui height=%ui duration=%ui frame_rate=%.3f " "video=%s (%ui) audio=%s (%ui)",