mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
兼容sdp不规范的rtsp流
This commit is contained in:
parent
6548f7959f
commit
9b7c9b9109
@ -244,6 +244,10 @@ void SdpParser::load(const string &sdp) {
|
|||||||
track._codec = codec;
|
track._codec = codec;
|
||||||
track._samplerate = samplerate;
|
track._samplerate = samplerate;
|
||||||
}
|
}
|
||||||
|
if (!track._samplerate && track._type == TrackVideo) {
|
||||||
|
//未设置视频采样率时,赋值为90000
|
||||||
|
track._samplerate = 90000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
it = track._attr.find("fmtp");
|
it = track._attr.find("fmtp");
|
||||||
|
Loading…
Reference in New Issue
Block a user