提交 2a36066e authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Michael Jerris

FS-7500: make 15fps the min detected speed

上级 ad201196
......@@ -316,7 +316,8 @@ SWITCH_DECLARE(uint32_t) switch_core_media_get_video_fps(switch_core_session_t *
{
switch_media_handle_t *smh;
time_t now;
uint32_t fps;
switch_assert(session);
if (!(smh = session->media_handle)) {
......@@ -333,7 +334,10 @@ SWITCH_DECLARE(uint32_t) switch_core_media_get_video_fps(switch_core_session_t *
return 0;
}
return switch_round_to_step(smh->vid_frames / (now - smh->vid_started), 5);
fps = switch_round_to_step(smh->vid_frames / (now - smh->vid_started), 5);
if (fps < 15) fps = 15;
return fps;
}
SWITCH_DECLARE(void) switch_core_media_pass_zrtp_hash2(switch_core_session_t *aleg_session, switch_core_session_t *bleg_session)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论