mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00: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
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Reference in a new issue