Propagate is_bw_limited flag with bw allocation everywhere it's copied

Bug: webrtc:11015
Change-Id: Ie971d29d8a8d140ba120a51dd3920291034a4d48
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166526
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30325}
This commit is contained in:
Ilya Nikolaevskiy
2020-01-20 10:03:20 +01:00
committed by Commit Bot
parent 67dcb4b54d
commit 8b1338bf8e
2 changed files with 5 additions and 0 deletions

View File

@ -289,6 +289,10 @@ VideoBitrateAllocation EncoderBitrateAdjuster::AdjustRateAllocation(
}
}
// Since no spatial layers or streams are toggled by the adjustment
// bw-limited flag stays the same.
adjusted_allocation.set_bw_limited(rates.bitrate.is_bw_limited());
return adjusted_allocation;
}

View File

@ -183,6 +183,7 @@ VideoBitrateAllocation UpdateAllocationFromEncoderInfo(
}
}
}
new_allocation.set_bw_limited(allocation.is_bw_limited());
return new_allocation;
}
} // namespace