| Index: webrtc/video_engine/vie_encoder.cc
|
| diff --git a/webrtc/video_engine/vie_encoder.cc b/webrtc/video_engine/vie_encoder.cc
|
| index 96ed2f9afd425664889bc374b46594c844ddee4b..fad58439afeb44dface5fc8efa98de0faccd04e6 100644
|
| --- a/webrtc/video_engine/vie_encoder.cc
|
| +++ b/webrtc/video_engine/vie_encoder.cc
|
| @@ -33,7 +33,6 @@
|
| #include "webrtc/system_wrappers/include/tick_util.h"
|
| #include "webrtc/video/send_statistics_proxy.h"
|
| #include "webrtc/video_engine/payload_router.h"
|
| -#include "webrtc/video_engine/vie_defines.h"
|
|
|
| namespace webrtc {
|
|
|
| @@ -46,6 +45,8 @@ static const int kMinPacingDelayMs = 200;
|
|
|
| static const float kStopPaddingThresholdMs = 2000;
|
|
|
| +static const int kMinKeyFrameRequestIntervalMs = 300;
|
| +
|
| std::vector<uint32_t> AllocateStreamBitrates(
|
| uint32_t total_bitrate,
|
| const SimulcastStream* stream_configs,
|
| @@ -587,7 +588,8 @@ void ViEEncoder::OnReceivedIntraFrameRequest(uint32_t ssrc) {
|
| }
|
|
|
| int64_t now = TickTime::MillisecondTimestamp();
|
| - if (time_last_intra_request_ms_[ssrc] + kViEMinKeyRequestIntervalMs > now) {
|
| + if (time_last_intra_request_ms_[ssrc] + kMinKeyFrameRequestIntervalMs
|
| + > now) {
|
| return;
|
| }
|
| time_last_intra_request_ms_[ssrc] = now;
|
|
|