Avoid copying of InlinedVector by DefaultTemporalLayers ctor

Bug: None
Change-Id: I31767a97ad5438001b6fc348157ef25a97ed6168
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/133180
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Elad Alon <eladalon@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#27639}
This commit is contained in:
Elad Alon
2019-04-16 10:42:17 +02:00
committed by Commit Bot
parent a7e78f24dd
commit c3f31dc395

View File

@ -239,7 +239,7 @@ DefaultTemporalLayers::DefaultTemporalLayers(int number_of_temporal_layers)
}
kf_buffers_ = {kAllBuffers.begin(), kAllBuffers.end()};
for (DependencyInfo info : temporal_pattern_) {
for (const DependencyInfo& info : temporal_pattern_) {
uint8_t updated_buffers = GetUpdatedBuffers(info.frame_config);
for (Vp8BufferReference buffer : kAllBuffers) {