mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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:
parent
669008f437
commit
fca9197e1c
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ public final class EncoderUtil {
|
||||||
*/
|
*/
|
||||||
public static ImmutableList<MediaCodecInfo> getSupportedEncodersForHdrEditing(
|
public static ImmutableList<MediaCodecInfo> getSupportedEncodersForHdrEditing(
|
||||||
String mimeType, @Nullable ColorInfo colorInfo) {
|
String mimeType, @Nullable ColorInfo colorInfo) {
|
||||||
if (Util.SDK_INT < 31 || colorInfo == null) {
|
if (Util.SDK_INT < 33 || colorInfo == null) {
|
||||||
return ImmutableList.of();
|
return ImmutableList.of();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue