修复m3u8中extinf不准的问题:#816

This commit is contained in:
ziyue 2021-07-07 11:51:44 +08:00
parent 03addaf0b7
commit 039be5444e

View File

@ -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){