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

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

Issue: #782
This commit is contained in:
Oliver Woodman 2015-09-15 13:41:42 +01:00
parent 5050913ba0
commit ab46d263ad

View File

@ -173,8 +173,7 @@ public final class MediaCodecUtil {
*/
private static boolean isCodecUsableDecoder(MediaCodecInfo info, String name,
boolean secureDecodersExplicit) {
if (info.isEncoder() || !name.startsWith("OMX.")
|| (!secureDecodersExplicit && name.endsWith(".secure"))) {
if (info.isEncoder() || (!secureDecodersExplicit && name.endsWith(".secure"))) {
return false;
}