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
2015-06-09 21:04:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8e8c8108fc6f4e8e09179c32e4f88488d7a3a116
8e8c8108
1 parent
1f1776a0
refine the time jitter code.
显示空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
trunk/src/app/srs_app_source.cpp
trunk/src/app/srs_app_source.cpp
查看文件 @
8e8c810
...
...
@@ -92,7 +92,7 @@ int SrsRtmpJitter::correct(SrsSharedPtrMessage* msg, int tba, int tbv, SrsRtmpJi
if
(
ag
==
SrsRtmpJitterAlgorithmZERO
)
{
// for the first time, last_pkt_correct_time is zero.
// while when timestamp overflow, the timestamp become smaller, reset the last_pkt_correct_time.
if
(
last_pkt_correct_time
<=
0
||
last_pkt_correct_time
>
msg
->
timestamp
)
{
if
(
last_pkt_correct_time
<=
0
||
msg
->
timestamp
<
last_pkt_correct_time
)
{
last_pkt_correct_time
=
msg
->
timestamp
;
}
msg
->
timestamp
-=
last_pkt_correct_time
;
...
...
请
注册
或
登录
后发表评论