mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
提高对不规范GB28181流的兼容性,防止视频轨道被忽略
This commit is contained in:
parent
557d70eac5
commit
30dbac2c70
@ -139,7 +139,8 @@ void DecoderImp::onStream(int stream, int codecid, const void *extra, size_t byt
|
||||
break;
|
||||
}
|
||||
|
||||
if (finish) {
|
||||
//防止未获取视频track提前complete导致忽略后续视频的问题,用于兼容一些不太规范的ps流
|
||||
if (finish && _tracks[TrackVideo] ) {
|
||||
_sink->addTrackCompleted();
|
||||
InfoL << "add track finished";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user