Commit 192cdc66 by Oliver Woodman

Ignore secure decoders. They shouldn't be explicitly listed.

parent 067422a4
...@@ -76,7 +76,7 @@ public class MediaCodecUtil { ...@@ -76,7 +76,7 @@ public class MediaCodecUtil {
for (int i = 0; i < numberOfCodecs; i++) { for (int i = 0; i < numberOfCodecs; i++) {
MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i); MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i);
String codecName = info.getName(); String codecName = info.getName();
if (!info.isEncoder() && isOmxCodec(codecName)) { if (!info.isEncoder() && codecName.startsWith("OMX.") && !codecName.endsWith(".secure")) {
String[] supportedTypes = info.getSupportedTypes(); String[] supportedTypes = info.getSupportedTypes();
for (int j = 0; j < supportedTypes.length; j++) { for (int j = 0; j < supportedTypes.length; j++) {
String supportedType = supportedTypes[j]; String supportedType = supportedTypes[j];
...@@ -91,10 +91,6 @@ public class MediaCodecUtil { ...@@ -91,10 +91,6 @@ public class MediaCodecUtil {
return null; return null;
} }
private static boolean isOmxCodec(String name) {
return name.startsWith("OMX.");
}
private static boolean isAdaptive(CodecCapabilities capabilities) { private static boolean isAdaptive(CodecCapabilities capabilities) {
if (Util.SDK_INT >= 19) { if (Util.SDK_INT >= 19) {
return isAdaptiveV19(capabilities); return isAdaptiveV19(capabilities);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment