Commit ab46d263 by Oliver Woodman

Use decoders with names that don't start "OMX.".

There is no guarantee codec names start with this prefix in >= L.

Issue: #782
parent 5050913b
...@@ -173,8 +173,7 @@ public final class MediaCodecUtil { ...@@ -173,8 +173,7 @@ public final class MediaCodecUtil {
*/ */
private static boolean isCodecUsableDecoder(MediaCodecInfo info, String name, private static boolean isCodecUsableDecoder(MediaCodecInfo info, String name,
boolean secureDecodersExplicit) { boolean secureDecodersExplicit) {
if (info.isEncoder() || !name.startsWith("OMX.") if (info.isEncoder() || (!secureDecodersExplicit && name.endsWith(".secure"))) {
|| (!secureDecodersExplicit && name.endsWith(".secure"))) {
return false; return false;
} }
......
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