Index: webrtc/video/video_quality_test.cc |
diff --git a/webrtc/video/video_quality_test.cc b/webrtc/video/video_quality_test.cc |
index 5b23643399354c951469ddc91396437636a9d5a0..c19d3d40f2a0b811a502a5feeac58a38e8cf6332 100644 |
--- a/webrtc/video/video_quality_test.cc |
+++ b/webrtc/video/video_quality_test.cc |
@@ -37,6 +37,7 @@ |
namespace webrtc { |
static const int kSendStatsPollingIntervalMs = 1000; |
+static const int kPayloadTypeH264 = 122; |
static const int kPayloadTypeVP8 = 123; |
static const int kPayloadTypeVP9 = 124; |
@@ -784,7 +785,10 @@ void VideoQualityTest::SetupCommon(Transport* send_transport, |
CreateSendConfig(num_streams, send_transport); |
int payload_type; |
- if (params_.common.codec == "VP8") { |
+ if (params_.common.codec == "H264") { |
+ encoder_.reset(VideoEncoder::Create(VideoEncoder::kH264)); |
+ payload_type = kPayloadTypeH264; |
+ } else if (params_.common.codec == "VP8") { |
encoder_.reset(VideoEncoder::Create(VideoEncoder::kVp8)); |
payload_type = kPayloadTypeVP8; |
} else if (params_.common.codec == "VP9") { |