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

Unified Diff: webrtc/video_engine/vie_encoder.cc

Issue 1411573007: Removed vie_defines.h (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 months 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
Index: webrtc/video_engine/vie_encoder.cc
diff --git a/webrtc/video_engine/vie_encoder.cc b/webrtc/video_engine/vie_encoder.cc
index f705bc26c2ebecc062e2db341edbd350ee0fbc4b..229900a85396418a435866a3dc945a79b1a88e84 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;
+const int kMinKeyFrameRequestIntervalMs = 300;
pbos-webrtc 2015/10/29 15:39:41 static
mflodman 2015/11/06 11:38:36 Done.
+
std::vector<uint32_t> AllocateStreamBitrates(
uint32_t total_bitrate,
const SimulcastStream* stream_configs,
@@ -600,7 +601,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;

Powered by Google App Engine
This is Rietveld 408576698