优化单Track情况下等待3秒的情况

This commit is contained in:
xiongziliang
2020-02-25 14:59:40 +08:00
parent f76109c629
commit d60101b93c
4 changed files with 23 additions and 5 deletions

View File

@@ -151,6 +151,9 @@ MP4Reader::MP4Reader(const string &strVhost,const string &strApp, const string &
H264Track::Ptr track = std::make_shared<H264Track>(_strSps,_strPps);
_mediaMuxer->addTrack(track);
}
//添加完毕所有track防止单track情况下最大等待3秒
_mediaMuxer->addTrackCompleted();
}