正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -543,7 +543,7 @@ bool SrsHlsMuxer::is_segment_overflow() | @@ -543,7 +543,7 @@ bool SrsHlsMuxer::is_segment_overflow() | ||
543 | srs_assert(current); | 543 | srs_assert(current); |
544 | 544 | ||
545 | // to prevent very small segment. | 545 | // to prevent very small segment. |
546 | - if (current->duration < 2 * SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS) { | 546 | + if (current->duration * 1000 < 2 * SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS) { |
547 | return false; | 547 | return false; |
548 | } | 548 | } |
549 | 549 | ||
@@ -566,7 +566,7 @@ bool SrsHlsMuxer::is_segment_absolutely_overflow() | @@ -566,7 +566,7 @@ bool SrsHlsMuxer::is_segment_absolutely_overflow() | ||
566 | srs_assert(current); | 566 | srs_assert(current); |
567 | 567 | ||
568 | // to prevent very small segment. | 568 | // to prevent very small segment. |
569 | - if (current->duration < 2 * SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS) { | 569 | + if (current->duration * 1000 < 2 * SRS_AUTO_HLS_SEGMENT_MIN_DURATION_MS) { |
570 | return false; | 570 | return false; |
571 | } | 571 | } |
572 | 572 |
-
请 注册 或 登录 后发表评论