Don't check brand when whitelisting ranchu for HEVC

HarmonyOS also uses "ranchu" as the hardware name, but doesn't use "google" as the brand name
This commit is contained in:
Cameron Gutman 2020-11-08 20:40:59 -06:00
parent ce0b19605a
commit 17cf711c3d

View File

@ -124,7 +124,7 @@ public class MediaCodecHelper {
whitelistedHevcDecoders = new LinkedList<>();
// Allow software HEVC decoding in the official AOSP emulator
if (Build.HARDWARE.equals("ranchu") && Build.BRAND.equals("google")) {
if (Build.HARDWARE.equals("ranchu")) {
whitelistedHevcDecoders.add("omx.google");
}