Use provided Format in shouldUseBypass check

#minor-release

PiperOrigin-RevId: 529708020
This commit is contained in:
michaelkatz 2023-05-05 14:11:12 +00:00 committed by Tofunmi Adigun-Hameed
parent 954b694b42
commit b69b3423c3

View File

@ -556,7 +556,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);
} }
/** /**