commit | c3f31dc395f4791e141a312ced239c5fbab7aeab | [log] [tgz] |
---|---|---|
author | Elad Alon <eladalon@webrtc.org> | Tue Apr 16 08:42:17 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Apr 16 10:50:41 2019 |
tree | 57419e8c2f227da4b9fd3a56629bcabfd8d998c5 | |
parent | a7e78f24dd59131815cccbc620e7af9068669cf6 [diff] |
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}
diff --git a/modules/video_coding/codecs/vp8/default_temporal_layers.cc b/modules/video_coding/codecs/vp8/default_temporal_layers.cc index 702a4bc..22b3718 100644 --- a/modules/video_coding/codecs/vp8/default_temporal_layers.cc +++ b/modules/video_coding/codecs/vp8/default_temporal_layers.cc
@@ -239,7 +239,7 @@ } 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) {