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 d575d8c5de0f93154ff61a688258e8a27215ac4c..b30fa972d3fd53cd8cd8a37b584a311cf3ce5295 100644 |
--- a/webrtc/api/android/jni/androidmediaencoder_jni.cc |
+++ b/webrtc/api/android/jni/androidmediaencoder_jni.cc |
@@ -1358,7 +1358,7 @@ webrtc::VideoEncoder* MediaCodecVideoEncoderFactory::CreateVideoEncoder( |
ALOGW << "No HW video encoder for codec " << codec.name; |
return nullptr; |
} |
- if (IsCodecSupported(supported_codecs_, codec)) { |
+ if (FindMatchingCodec(supported_codecs_, codec)) { |
ALOGD << "Create HW video encoder for " << codec.name; |
const VideoCodecType type = cricket::CodecTypeFromName(codec.name); |
return new MediaCodecVideoEncoder(AttachCurrentThreadIfNeeded(), type, |