Expand operating rate workaround to T612 chipset

PiperOrigin-RevId: 592916187
This commit is contained in:
andrewlewis 2023-12-21 11:49:31 -08:00 committed by Copybara-Service
parent 5211ff0dc1
commit 1845a4ae69

View file

@ -527,11 +527,13 @@ public final class DefaultEncoderFactory implements Codec.EncoderFactory {
}
private static boolean deviceNeedsLowerOperatingRateAvoidingOverflowWorkaround() {
// On this chipset, setting an operating rate close to Integer.MAX_VALUE will cause the encoder
// to throw at configuration time. Setting the operating rate to 1000 avoids being close to an
// integer overflow limit while being higher than a maximum feasible operating rate. See
// [internal b/311206113].
return Util.SDK_INT >= 31 && Util.SDK_INT <= 34 && Build.SOC_MODEL.equals("SM8550");
// On these chipsets, setting an operating rate close to Integer.MAX_VALUE will cause the
// encoder to throw at configuration time. Setting the operating rate to 1000 avoids being close
// to an integer overflow limit while being higher than a maximum feasible operating rate. See
// [internal b/311206113, b/317297946].
return Util.SDK_INT >= 31
&& Util.SDK_INT <= 34
&& (Build.SOC_MODEL.equals("SM8550") || Build.SOC_MODEL.equals("T612"));
}
/**