mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b9a699588e
@ -235,7 +235,7 @@ void SdpParser::load(const string &sdp) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (it = track._attr.find("rtpmap"); it != track._attr.end();) {
|
for (it = track._attr.find("rtpmap"); it != track._attr.end() && it->first == "rtpmap";) {
|
||||||
auto &rtpmap = it->second;
|
auto &rtpmap = it->second;
|
||||||
int pt, samplerate, channel;
|
int pt, samplerate, channel;
|
||||||
char codec[16] = {0};
|
char codec[16] = {0};
|
||||||
@ -262,7 +262,7 @@ void SdpParser::load(const string &sdp) {
|
|||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (it = track._attr.find("fmtp"); it != track._attr.end(); ) {
|
for (it = track._attr.find("fmtp"); it != track._attr.end() && it->first == "fmtp"; ) {
|
||||||
auto &fmtp = it->second;
|
auto &fmtp = it->second;
|
||||||
int pt;
|
int pt;
|
||||||
sscanf(fmtp.data(), "%d", &pt);
|
sscanf(fmtp.data(), "%d", &pt);
|
||||||
|
Loading…
Reference in New Issue
Block a user