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-10-27 18:20:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3b0bf1e10b1870d73b1211d7d8a2d9200174209a
3b0bf1e1
1 parent
d1979c76
for #512, make the segment more acceptable, when in [min, max_td * 2], it's ok.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
trunk/src/app/srs_app_hls.cpp
trunk/src/app/srs_app_hls.cpp
查看文件 @
3b0bf1e
...
...
@@ -728,7 +728,8 @@ int SrsHlsMuxer::segment_close(string log_desc)
// valid, add to segments if segment duration is ok
// when too small, it maybe not enough data to play.
// when too large, it maybe timestamp corrupt.
if
(
current
->
duration
*
1000
>=
SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS
&&
(
int
)
current
->
duration
<=
max_td
)
{
// make the segment more acceptable, when in [min, max_td * 2], it's ok.
if
(
current
->
duration
*
1000
>=
SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS
&&
(
int
)
current
->
duration
<=
max_td
*
2
)
{
segments
.
push_back
(
current
);
// use async to call the http hooks, for it will cause thread switch.
...
...
请
注册
或
登录
后发表评论