Commit 2a060695 by huangdarwin Committed by microkatz

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
parent 3fa31bb1
......@@ -84,7 +84,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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment