mirror of
https://github.com/samsonjs/media.git
synced 2026-04-07 11:35:46 +00:00
Expand operating rate workaround to T612 chipset
PiperOrigin-RevId: 592916187
This commit is contained in:
parent
5211ff0dc1
commit
1845a4ae69
1 changed files with 7 additions and 5 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue