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-04-21 16:21:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4e5ddb51e745b8452cd5bdffd9b28e9f9f74463f
4e5ddb51
1 parent
1d973e21
refine the overflow algorithm, prevent smaller piece.
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
trunk/src/app/srs_app_hls.cpp
trunk/src/app/srs_app_hls.cpp
查看文件 @
4e5ddb5
...
...
@@ -543,7 +543,7 @@ bool SrsHlsMuxer::is_segment_overflow()
srs_assert
(
current
);
// to prevent very small segment.
if
(
current
->
duration
<
2
*
SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS
)
{
if
(
current
->
duration
*
1000
<
2
*
SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS
)
{
return
false
;
}
...
...
@@ -566,7 +566,7 @@ bool SrsHlsMuxer::is_segment_absolutely_overflow()
srs_assert
(
current
);
// to prevent very small segment.
if
(
current
->
duration
<
2
*
SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS
)
{
if
(
current
->
duration
*
1000
<
2
*
SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS
)
{
return
false
;
}
...
...
请
注册
或
登录
后发表评论