Fix for set local SSRC
Review URL: https://webrtc-codereview.appspot.com/451002 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1868 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
7256bdc3f5
commit
b594f4314a
@ -720,6 +720,9 @@ WebRtc_Word32 ViEChannel::SetSSRC(const WebRtc_UWord32 SSRC,
|
||||
if (simulcast_idx == 0) {
|
||||
return rtp_rtcp_.SetSSRC(SSRC);
|
||||
}
|
||||
if (simulcast_idx > simulcast_rtp_rtcp_.size()) {
|
||||
return -1;
|
||||
}
|
||||
std::list<RtpRtcp*>::const_iterator it = simulcast_rtp_rtcp_.begin();
|
||||
for (int i = 1; i < simulcast_idx; ++i, ++it) {
|
||||
if (it == simulcast_rtp_rtcp_.end()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user