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

Unified Diff: webrtc/api/android/jni/androidmediaencoder_jni.cc

Issue 2447163003: Decrease threshold for key frame generation. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/android/jni/androidmediaencoder_jni.cc
diff --git a/webrtc/api/android/jni/androidmediaencoder_jni.cc b/webrtc/api/android/jni/androidmediaencoder_jni.cc
index ef3d4815badaaf4d2390fa82d3a6fb4559364874..83c03b229aff2c656addd6a619e4d6c08cbad7ad 100644
--- a/webrtc/api/android/jni/androidmediaencoder_jni.cc
+++ b/webrtc/api/android/jni/androidmediaencoder_jni.cc
@@ -84,8 +84,8 @@ namespace webrtc_jni {
namespace {
// Maximum time limit between incoming frames before requesting a key frame.
-const size_t kFrameDiffThresholdMs = 1100;
-const int kMinKeyFrameInterval = 2;
+const size_t kFrameDiffThresholdMs = 350;
+const int kMinKeyFrameInterval = 6;
} // namespace
// MediaCodecVideoEncoder is a webrtc::VideoEncoder implementation that uses
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698