Index: webrtc/video/video_quality_test.cc |
diff --git a/webrtc/video/video_quality_test.cc b/webrtc/video/video_quality_test.cc |
index d440858155a9b4ebdc4b829454e1f5ec53392e54..cb806cf9374a5de878c64fe8df7180618912b167 100644 |
--- a/webrtc/video/video_quality_test.cc |
+++ b/webrtc/video/video_quality_test.cc |
@@ -666,11 +666,17 @@ void VideoQualityTest::SetupScreenshare(const Params& params) { |
RTC_CHECK_LE(params.screenshare.scroll_duration, |
params.screenshare.slide_change_interval); |
- frame_generator_.reset( |
- test::FrameGenerator::CreateScrollingInputFromYuvFiles( |
- clock_, slides, kWidth, kHeight, params.common.width, |
- params.common.height, params.screenshare.scroll_duration * 1000, |
- kPauseDurationMs)); |
+ if (params.screenshare.scroll_duration) { |
+ frame_generator_.reset( |
+ test::FrameGenerator::CreateScrollingInputFromYuvFiles( |
+ clock_, slides, kWidth, kHeight, params.common.width, |
+ params.common.height, params.screenshare.scroll_duration * 1000, |
+ kPauseDurationMs)); |
+ } else { |
+ frame_generator_.reset(test::FrameGenerator::CreateFromYuvFile( |
+ slides, kWidth, kHeight, |
+ params.screenshare.slide_change_interval * params.common.fps)); |
+ } |
} |
} |