| Index: webrtc/video/payload_router.cc
|
| diff --git a/webrtc/video/payload_router.cc b/webrtc/video/payload_router.cc
|
| index 52e9d46ebb4f594c4fbfa3d96b1753e0717dabdb..3cdfb7503a36a78b14a195582cb559ab0411df35 100644
|
| --- a/webrtc/video/payload_router.cc
|
| +++ b/webrtc/video/payload_router.cc
|
| @@ -156,6 +156,10 @@ void PayloadRouter::OnBitrateAllocationUpdated(
|
| // Simulcast is in use, split the BitrateAllocation into one struct per
|
| // rtp stream, moving over the temporal layer allocation.
|
| for (size_t si = 0; si < rtp_modules_.size(); ++si) {
|
| + // Don't send empty TargetBitrate messages on streams not being relayed.
|
| + if (bitrate.GetSpatialLayerSum(si) == 0)
|
| + break;
|
| +
|
| BitrateAllocation layer_bitrate;
|
| for (int tl = 0; tl < kMaxTemporalStreams; ++tl)
|
| layer_bitrate.SetBitrate(0, tl, bitrate.GetBitrate(si, tl));
|
|
|