Force regular key frame generation for VP8 codec only.

BUG=b/33554812,b/32238476
R=wzh@webrtc.org

Review-Url: https://codereview.webrtc.org/2614073003 .
Cr-Commit-Position: refs/heads/master@{#15926}
This commit is contained in:
Alex Glaznev 2017-01-05 16:40:46 -08:00
parent c7483a7d88
commit 512f00bc58

View File

@ -414,7 +414,8 @@ public class MediaCodecVideoEncoder {
forcedKeyFrameMs = 0;
lastKeyFrameMs = -1;
if (properties.codecName.startsWith(qcomVp8HwProperties.codecPrefix)) {
if (type == VideoCodecType.VIDEO_CODEC_VP8
&& properties.codecName.startsWith(qcomVp8HwProperties.codecPrefix)) {
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.M) {
forcedKeyFrameMs = QCOM_VP8_KEY_FRAME_INTERVAL_ANDROID_M_MS;
} else if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) {