Fixing loopback video test by reconfiguring the encoder to correct size.

Same as https://codereview.webrtc.org/2480753002, but with a small fix.

BUG=none

Review-Url: https://codereview.webrtc.org/2578143002
Cr-Commit-Position: refs/heads/master@{#15639}
This commit is contained in:
mflodman
2016-12-15 07:24:33 -08:00
committed by Commit bot
parent 721d402d71
commit d79f97b542

View File

@ -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_;