Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Unified Diff: webrtc/video/video_quality_test.cc

Issue 2578143002: Fixing loopback video test by reconfiguring the encoder to correct size. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698