mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
兼容dts时间戳回退导致录像切片异常的问题
This commit is contained in:
parent
2422285829
commit
0e0608dc27
@ -98,7 +98,7 @@ void MP4Recorder::closeFile() {
|
||||
}
|
||||
|
||||
bool MP4Recorder::inputFrame(const Frame::Ptr &frame) {
|
||||
if (_last_dts == 0) {
|
||||
if (_last_dts == 0 || _last_dts > frame->dts()) {
|
||||
//极少情况下dts时间戳可能回退
|
||||
_last_dts = frame->dts();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user