mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
优化代码
This commit is contained in:
@@ -77,6 +77,13 @@ void splitH264(const char *ptr, int len, const std::function<void(const char *,
|
||||
}
|
||||
|
||||
|
||||
Sdp::Ptr H264Track::getSdp() {
|
||||
if(!ready()){
|
||||
WarnL << "H264 Track未准备好";
|
||||
return nullptr;
|
||||
}
|
||||
return std::make_shared<H264Sdp>(getSps(),getPps());
|
||||
}
|
||||
}//namespace mediakit
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user