Commit d881a675 by andrewlewis Committed by kim-vde

Check output format change timing after API 30

PiperOrigin-RevId: 327795332
parent 4c894c80
...@@ -136,13 +136,9 @@ import java.util.ArrayList; ...@@ -136,13 +136,9 @@ import java.util.ArrayList;
skipToPositionBeforeRenderingFirstFrame = getState() == Renderer.STATE_STARTED; skipToPositionBeforeRenderingFirstFrame = getState() == Renderer.STATE_STARTED;
super.configureCodec(codecInfo, codecAdapter, format, crypto, operatingRate); super.configureCodec(codecInfo, codecAdapter, format, crypto, operatingRate);
// Two separate issues affect whether MediaFormat changes occur at the correct time. // Output MediaFormat changes are known to occur too early until API 30 (see [internal:
// As per [Internal ref: b/149818050, b/149751672], MediaFormat changes can occur early for // b/149818050, b/149751672]).
// SDK 29 and 30. shouldMediaFormatChangeTimesBeChecked = Util.SDK_INT > 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 && !codecInfo.name.startsWith("OMX.google")) || Util.SDK_INT > 30;
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment