mirror of
https://github.com/androidx/media.git
synced 2025-05-18 13:09:56 +08:00
Assume software decoder fix will happen before API 31 too
PiperOrigin-RevId: 327782731
This commit is contained in:
parent
e55b345595
commit
0d8f016d33
@ -138,11 +138,11 @@ import java.util.ArrayList;
|
||||
|
||||
// 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
|
||||
// SDK 29 and 30. Should be fixed for SDK 31 onwards.
|
||||
// [Internal ref: b/165786766] When using OMX Software decoders, MediaFormat change timestamp
|
||||
// appears to occur early.
|
||||
// SDK 29 and 30.
|
||||
// [Internal ref: b/165786766] When using OMX software decoders, MediaFormat change timestamp
|
||||
// appears to occur early up to API 30.
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user