Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-05-20 18:15:02 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1d6b096ce92ce3a0038be2876f0286976f2e3a26
1d6b096c
1 parent
2265173c
adjust the deviation.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
trunk/research/librtmp/srs_ingest_flv.c
trunk/research/librtmp/srs_ingest_flv.c
查看文件 @
1d6b096
...
...
@@ -190,11 +190,11 @@ int64_t re_create()
int64_t
deviation
=
re
-
tools_main_entrance_startup_time
;
trace
(
"deviation is %d ms, pulse is %d ms"
,
(
int
)(
deviation
),
(
int
)(
RE_PULSE_MS
));
// so, we adjust time to max(0, deviation - pulse/4)
// because the last pulse, we never sleep, so we use pulse/4,
// so, we adjust time to max(0, deviation - pulse/10)
// because the last pulse, we never sleep, so we use pulse/10,
// for example, when EOF at the 120ms of last pulse,
// these bytes is additional data and to fill the deviation.
int
adjust
=
(
int
)(
deviation
-
(
RE_PULSE_MS
/
4
));
int
adjust
=
(
int
)(
deviation
-
(
RE_PULSE_MS
/
10
));
if
(
adjust
>
0
)
{
trace
(
"adjust re time, sub %d ms"
,
adjust
);
re
-=
adjust
;
...
...
请
注册
或
登录
后发表评论