Expand Samsung/1+ workaround to API 31 + 32

The issue with decoding getting stuck is still reproducible on `samsung/beyond1lteeea/beyond1:12/SP1A.210812.016/G973FXXUEGULB:user/release-keys`.

PiperOrigin-RevId: 443368546
This commit is contained in:
andrewlewis 2022-04-21 15:08:05 +01:00 committed by Ian Baker
parent 8c07f1e1a0
commit 3867f8e005

View File

@ -271,7 +271,7 @@ import org.checkerframework.dataflow.qual.Pure;
// TODO(b/226330223): Investigate increasing this limit. // TODO(b/226330223): Investigate increasing this limit.
return 1; return 1;
} }
if (Util.SDK_INT < 31 if (Util.SDK_INT < 33
&& ("OnePlus".equals(Util.MANUFACTURER) || "samsung".equals(Util.MANUFACTURER))) { && ("OnePlus".equals(Util.MANUFACTURER) || "samsung".equals(Util.MANUFACTURER))) {
// Some OMX decoders don't correctly track their number of output buffers available, and get // Some OMX decoders don't correctly track their number of output buffers available, and get
// stuck if too many frames are rendered without being processed, so we limit the number of // stuck if too many frames are rendered without being processed, so we limit the number of