Index: webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc |
diff --git a/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc b/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc |
index efbf2c23f2f537b7f4b7a9ef3a756855a803e8fb..5b2c0ac645b3881d346f380008100b243080c397 100644 |
--- a/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc |
+++ b/webrtc/sdk/android/src/jni/androidmediaencoder_jni.cc |
@@ -553,8 +553,7 @@ int32_t MediaCodecVideoEncoder::ProcessHWErrorOnEncode() { |
} |
VideoCodecType MediaCodecVideoEncoder::GetCodecType() const { |
- return webrtc::PayloadNameToCodecType(codec_.name) |
- .value_or(webrtc::kVideoCodecUnknown); |
+ return webrtc::PayloadStringToCodecType(codec_.name); |
} |
int32_t MediaCodecVideoEncoder::InitEncodeInternal(int width, |