mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
修复mtu配置无法加载的bug
This commit is contained in:
parent
5182f0cddb
commit
166bbb0be0
@ -45,7 +45,11 @@ void RtspMuxer::onTrackReady(const Track::Ptr &track) {
|
||||
return;
|
||||
}
|
||||
uint32_t ssrc = ((uint64_t) sdp.get()) & 0xFFFFFFFF;
|
||||
auto mtu = (track->getTrackType() == TrackVideo ? 1400 : 600);
|
||||
|
||||
GET_CONFIG_AND_REGISTER(uint32_t,audio_mtu,Rtp::kAudioMtuSize);
|
||||
GET_CONFIG_AND_REGISTER(uint32_t,video_mtu,Rtp::kVideoMtuSize);
|
||||
|
||||
auto mtu = (track->getTrackType() == TrackVideo ? video_mtu : audio_mtu);
|
||||
// 根据sdp生成rtp编码器ssrc
|
||||
auto encoder = sdp->createRtpEncoder(ssrc, mtu);
|
||||
if (!encoder) {
|
||||
|
Loading…
Reference in New Issue
Block a user