提升rtsp的兼容性

This commit is contained in:
xiongziliang
2019-11-25 17:59:04 +08:00
parent 21cf3bcee0
commit bf70a01f6a
4 changed files with 15 additions and 10 deletions

View File

@@ -1105,6 +1105,9 @@ inline int RtspSession::getTrackIndexByTrackType(TrackType type) {
return i;
}
}
if(_aTrackInfo.size() == 1){
return 0;
}
return -1;
}
inline int RtspSession::getTrackIndexByControlSuffix(const string &controlSuffix) {
@@ -1125,6 +1128,9 @@ inline int RtspSession::getTrackIndexByInterleaved(int interleaved){
return i;
}
}
if(_aTrackInfo.size() == 1){
return 0;
}
return -1;
}