From 039be5444e63a6bb73f638842f83e6c6aa1f13e3 Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Wed, 7 Jul 2021 11:51:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dm3u8=E4=B8=ADextinf=E4=B8=8D?= =?UTF-8?q?=E5=87=86=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=9A#816?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Record/HlsMaker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Record/HlsMaker.cpp b/src/Record/HlsMaker.cpp index 0fe92d05..db780013 100644 --- a/src/Record/HlsMaker.cpp +++ b/src/Record/HlsMaker.cpp @@ -104,7 +104,7 @@ void HlsMaker::addNewSegment(uint32_t stamp) { //新增切片 _last_file_name = onOpenSegment(_file_index++); //记录本次切片的起始时间戳 - _last_seg_timestamp = stamp; + _last_seg_timestamp = _last_timestamp ? _last_timestamp : stamp; } void HlsMaker::flushLastSegment(bool eof){