Use provided Format in shouldUseBypass check
#minor-release PiperOrigin-RevId: 529708020
This commit is contained in:
parent
954b694b42
commit
b69b3423c3
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user