Delete enum RtpVideoCodecTypes, replaced with VideoCodecType.
Bug: webrtc:8995 Change-Id: I0b44aa26f2f6a81aec7ca1281b8513d8e03228b8 Reviewed-on: https://webrtc-review.googlesource.com/79561 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23507}
This commit is contained in:
@ -55,6 +55,7 @@ public class MediaCodecVideoDecoder {
|
||||
|
||||
// Tracks webrtc::VideoCodecType.
|
||||
public enum VideoCodecType {
|
||||
VIDEO_CODEC_UNKNOWN,
|
||||
VIDEO_CODEC_VP8,
|
||||
VIDEO_CODEC_VP9,
|
||||
VIDEO_CODEC_H264;
|
||||
|
||||
@ -47,6 +47,7 @@ public class MediaCodecVideoEncoder {
|
||||
|
||||
// Tracks webrtc::VideoCodecType.
|
||||
public enum VideoCodecType {
|
||||
VIDEO_CODEC_UNKNOWN,
|
||||
VIDEO_CODEC_VP8,
|
||||
VIDEO_CODEC_VP9,
|
||||
VIDEO_CODEC_H264;
|
||||
@ -486,6 +487,8 @@ public class MediaCodecVideoEncoder {
|
||||
}
|
||||
}
|
||||
keyFrameIntervalSec = 20;
|
||||
} else {
|
||||
throw new RuntimeException("initEncode: Non-supported codec " + type);
|
||||
}
|
||||
if (properties == null) {
|
||||
throw new RuntimeException("Can not find HW encoder for " + type);
|
||||
|
||||
Reference in New Issue
Block a user