Index: webrtc/video/video_quality_test.cc |
diff --git a/webrtc/video/video_quality_test.cc b/webrtc/video/video_quality_test.cc |
index ce40c5fbb32dbca7d330a6d2b034decb265aa3e0..479ec7c572e5affdb636848715c9fb4381af4c02 100644 |
--- a/webrtc/video/video_quality_test.cc |
+++ b/webrtc/video/video_quality_test.cc |
@@ -103,7 +103,11 @@ class VideoStreamFactory |
int width, |
int height, |
const webrtc::VideoEncoderConfig& encoder_config) override { |
- return streams_; |
+ // The highest layer must match the incoming resolution. |
+ std::vector<webrtc::VideoStream> streams = streams_; |
+ streams[streams_.size() - 1].height = height; |
+ streams[streams_.size() - 1].width = width; |
+ return streams; |
} |
std::vector<webrtc::VideoStream> streams_; |