Assume software decoder fix will happen before API 31 too

PiperOrigin-RevId: 327782731
This commit is contained in:
andrewlewis 2020-08-21 11:04:18 +01:00 committed by Oliver Woodman
parent e55b345595
commit 0d8f016d33

View File

@ -138,11 +138,11 @@ import java.util.ArrayList;
// Two separate issues affect whether MediaFormat changes occur at the correct time. // Two separate issues affect whether MediaFormat changes occur at the correct time.
// As per [Internal ref: b/149818050, b/149751672], MediaFormat changes can occur early for // As per [Internal ref: b/149818050, b/149751672], MediaFormat changes can occur early for
// SDK 29 and 30. Should be fixed for SDK 31 onwards. // SDK 29 and 30.
// [Internal ref: b/165786766] When using OMX Software decoders, MediaFormat change timestamp // [Internal ref: b/165786766] When using OMX software decoders, MediaFormat change timestamp
// appears to occur early. // appears to occur early up to API 30.
shouldMediaFormatChangeTimesBeChecked = shouldMediaFormatChangeTimesBeChecked =
(Util.SDK_INT < 29 || Util.SDK_INT > 30) && !codecInfo.name.startsWith("OMX.google"); (Util.SDK_INT < 29 && !codecInfo.name.startsWith("OMX.google")) || Util.SDK_INT > 30;
} }
@Override @Override