HDR: Only check for HDR encoders on API 33+.

FEATURE_HdrEditing is only available on and above API 33, so it doesn't make
sense to check for support under API 33.

PiperOrigin-RevId: 518036855
This commit is contained in:
huangdarwin 2023-03-20 19:02:57 +00:00 committed by microkatz
parent 669008f437
commit fca9197e1c

View file

@ -86,7 +86,7 @@ public final class EncoderUtil {
*/
public static ImmutableList<MediaCodecInfo> getSupportedEncodersForHdrEditing(
String mimeType, @Nullable ColorInfo colorInfo) {
if (Util.SDK_INT < 31 || colorInfo == null) {
if (Util.SDK_INT < 33 || colorInfo == null) {
return ImmutableList.of();
}