Commit 4358924a by michaelkatz Committed by Tofunmi Adigun-Hameed

Use provided Format in shouldUseBypass check

#minor-release

PiperOrigin-RevId: 529708020
parent 1c4cfed3
...@@ -554,7 +554,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer { ...@@ -554,7 +554,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
* @return Whether playback bypassing {@link MediaCodec} is possible. * @return Whether playback bypassing {@link MediaCodec} is possible.
*/ */
protected final boolean isBypassPossible(Format format) { protected final boolean isBypassPossible(Format format) {
return sourceDrmSession == null && shouldUseBypass(inputFormat); return sourceDrmSession == null && shouldUseBypass(format);
} }
/** /**
......
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