mirror of
https://github.com/samsonjs/media.git
synced 2026-06-29 05:39:31 +00:00
Use Util.toLowerInvariant instead of String.toLowerCase
PiperOrigin-RevId: 268880519
This commit is contained in:
parent
65748fa8ee
commit
20c66e6a82
1 changed files with 2 additions and 2 deletions
|
|
@ -602,7 +602,7 @@ public final class MediaCodecUtil {
|
|||
if (Util.SDK_INT >= 29) {
|
||||
return isSoftwareOnlyV29(codecInfo);
|
||||
}
|
||||
String codecName = codecInfo.getName().toLowerCase();
|
||||
String codecName = Util.toLowerInvariant(codecInfo.getName());
|
||||
if (codecName.startsWith("arc.")) { // App Runtime for Chrome (ARC) codecs
|
||||
return false;
|
||||
}
|
||||
|
|
@ -628,7 +628,7 @@ public final class MediaCodecUtil {
|
|||
if (Util.SDK_INT >= 29) {
|
||||
return isVendorV29(codecInfo);
|
||||
}
|
||||
String codecName = codecInfo.getName().toLowerCase();
|
||||
String codecName = Util.toLowerInvariant(codecInfo.getName());
|
||||
return !codecName.startsWith("omx.google.")
|
||||
&& !codecName.startsWith("c2.android.")
|
||||
&& !codecName.startsWith("c2.google.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue