Don't report any HEVC decoders on pre-Lollipop devices

This commit is contained in:
Cameron Gutman 2015-12-16 17:14:16 -08:00
parent 6aaa9a83a6
commit 98bee122fe

View File

@ -153,6 +153,14 @@ public class MediaCodecHelper {
if (Build.DEVICE.equalsIgnoreCase("shieldtablet")) { if (Build.DEVICE.equalsIgnoreCase("shieldtablet")) {
return false; return false;
} }
// Google didn't have official support for HEVC (or more importantly, a CTS test) until
// Lollipop. I've seen some MediaTek devices on 4.4 crash when attempting to use HEVC,
// so I'm restricting HEVC usage to Lollipop and higher.
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
return false;
}
return isDecoderInList(whitelistedHevcDecoders, decoderName); return isDecoderInList(whitelistedHevcDecoders, decoderName);
} }