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:
parent
5050913ba0
commit
ab46d263ad
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user