Fixes an issue where we setting wrong padding bitrates.

BUG=

Review URL: https://webrtc-codereview.appspot.com/764006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@2717 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
stefan@webrtc.org 2012-09-07 11:15:33 +00:00
parent 7692239b18
commit 1a4abae7c2

View File

@ -1645,7 +1645,6 @@ void ModuleRtpRtcpImpl::SetTargetSendBitrate(const uint32_t bitrate) {
for (int i = 0; it != _childModules.end() &&
i < _sendVideoCodec.numberOfSimulcastStreams; ++it) {
if ((*it)->SendingMedia()) {
++i;
RTPSender& rtpSender = (*it)->_rtpSender;
if (_sendVideoCodec.simulcastStream[i].maxBitrate * 1000 >
bitrate_remainder) {
@ -1657,6 +1656,7 @@ void ModuleRtpRtcpImpl::SetTargetSendBitrate(const uint32_t bitrate) {
bitrate_remainder -=
_sendVideoCodec.simulcastStream[i].maxBitrate * 1000;
}
++i;
}
}
} else {