Decrease threshold for key frame generation.
On some recent Android devices camera switch is completed in 400 ms. Need to adjust key frame generation threshold to ensure HW encoder still generates a key frame after camera switch to workaround video distortions. BUG=b/32238476 Review-Url: https://codereview.webrtc.org/2447163003 Cr-Commit-Position: refs/heads/master@{#14791}
This commit is contained in:
parent
91c2d43ced
commit
489c0d4832
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user