Commit 18442b7f by hschlueter Committed by Oliver Woodman

Fix condition for when to use the FrameEditor.

outputHeight is the actual output height while
transformation.outputHeight could be Format.NO_VALUE
causing the FrameEditor to be used more often than
necessary in the old version.

PiperOrigin-RevId: 414304251
parent 4af06100
......@@ -80,8 +80,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
throw createRendererException(
e, rendererIndex, inputFormat, PlaybackException.ERROR_CODE_UNSPECIFIED);
}
if (inputFormat.height != transformation.outputHeight
|| !transformation.transformationMatrix.isIdentity()) {
if (inputFormat.height != outputHeight || !transformation.transformationMatrix.isIdentity()) {
frameEditor =
FrameEditor.create(
context,
......
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