mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-24 02:27:49 +08:00
Compare commits
2 Commits
493714bc7d
...
be6f6a6690
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be6f6a6690 | ||
|
|
1bb3b43313 |
@ -82,6 +82,9 @@ API_EXPORT void API_CALL mk_stop_all_server(){
|
|||||||
#ifdef ENABLE_WEBRTC
|
#ifdef ENABLE_WEBRTC
|
||||||
rtcServer_udp = nullptr;
|
rtcServer_udp = nullptr;
|
||||||
rtcServer_tcp = nullptr;
|
rtcServer_tcp = nullptr;
|
||||||
|
iceServer_udp = nullptr;
|
||||||
|
iceServer_tcp = nullptr;
|
||||||
|
CLEAR_ARR(signaling_server);
|
||||||
#endif
|
#endif
|
||||||
#ifdef ENABLE_SRT
|
#ifdef ENABLE_SRT
|
||||||
srtServer = nullptr;
|
srtServer = nullptr;
|
||||||
|
|||||||
@ -391,7 +391,7 @@ Track::Ptr getTrackBySdp(const SdpTrack::Ptr &track) {
|
|||||||
// If there is no sps/pps in the sdp, then it may be possible to recover the sps/pps in the subsequent rtp
|
// If there is no sps/pps in the sdp, then it may be possible to recover the sps/pps in the subsequent rtp
|
||||||
return std::make_shared<H264Track>();
|
return std::make_shared<H264Track>();
|
||||||
}
|
}
|
||||||
return std::make_shared<H264Track>(sps, pps, 0, 0);
|
return std::make_shared<H264Track>(sps, pps, prefixSize(sps.data(), sps.size()), prefixSize(pps.data(), pps.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
RtpCodec::Ptr getRtpEncoderByCodecId(uint8_t pt) {
|
RtpCodec::Ptr getRtpEncoderByCodecId(uint8_t pt) {
|
||||||
|
|||||||
@ -392,7 +392,10 @@ Track::Ptr getTrackBySdp(const SdpTrack::Ptr &track) {
|
|||||||
// If there is no sps/pps in the sdp, then it may be possible to recover sps/pps from the subsequent rtp
|
// If there is no sps/pps in the sdp, then it may be possible to recover sps/pps from the subsequent rtp
|
||||||
return std::make_shared<H265Track>();
|
return std::make_shared<H265Track>();
|
||||||
}
|
}
|
||||||
return std::make_shared<H265Track>(vps, sps, pps, 0, 0, 0);
|
return std::make_shared<H265Track>(vps, sps, pps,
|
||||||
|
prefixSize(vps.data(), vps.size()),
|
||||||
|
prefixSize(sps.data(), sps.size()),
|
||||||
|
prefixSize(pps.data(), pps.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
RtpCodec::Ptr getRtpEncoderByCodecId(uint8_t pt) {
|
RtpCodec::Ptr getRtpEncoderByCodecId(uint8_t pt) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user