mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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,
|
||||
boolean secureDecodersExplicit) {
|
||||
if (info.isEncoder() || !name.startsWith("OMX.")
|
||||
|| (!secureDecodersExplicit && name.endsWith(".secure"))) {
|
||||
if (info.isEncoder() || (!secureDecodersExplicit && name.endsWith(".secure"))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user