mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Ignore secure decoders. They shouldn't be explicitly listed.
This commit is contained in:
parent
067422a491
commit
192cdc66a2
1 changed files with 1 additions and 5 deletions
|
|
@ -76,7 +76,7 @@ public class MediaCodecUtil {
|
|||
for (int i = 0; i < numberOfCodecs; i++) {
|
||||
MediaCodecInfo info = MediaCodecList.getCodecInfoAt(i);
|
||||
String codecName = info.getName();
|
||||
if (!info.isEncoder() && isOmxCodec(codecName)) {
|
||||
if (!info.isEncoder() && codecName.startsWith("OMX.") && !codecName.endsWith(".secure")) {
|
||||
String[] supportedTypes = info.getSupportedTypes();
|
||||
for (int j = 0; j < supportedTypes.length; j++) {
|
||||
String supportedType = supportedTypes[j];
|
||||
|
|
@ -91,10 +91,6 @@ public class MediaCodecUtil {
|
|||
return null;
|
||||
}
|
||||
|
||||
private static boolean isOmxCodec(String name) {
|
||||
return name.startsWith("OMX.");
|
||||
}
|
||||
|
||||
private static boolean isAdaptive(CodecCapabilities capabilities) {
|
||||
if (Util.SDK_INT >= 19) {
|
||||
return isAdaptiveV19(capabilities);
|
||||
|
|
|
|||
Loading…
Reference in a new issue