mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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
This commit is contained in:
parent
f2ad8ccd3c
commit
8bd5d8bcbe
1 changed files with 1 additions and 2 deletions
|
|
@ -80,8 +80,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||||
throw createRendererException(
|
throw createRendererException(
|
||||||
e, rendererIndex, inputFormat, PlaybackException.ERROR_CODE_UNSPECIFIED);
|
e, rendererIndex, inputFormat, PlaybackException.ERROR_CODE_UNSPECIFIED);
|
||||||
}
|
}
|
||||||
if (inputFormat.height != transformation.outputHeight
|
if (inputFormat.height != outputHeight || !transformation.transformationMatrix.isIdentity()) {
|
||||||
|| !transformation.transformationMatrix.isIdentity()) {
|
|
||||||
frameEditor =
|
frameEditor =
|
||||||
FrameEditor.create(
|
FrameEditor.create(
|
||||||
context,
|
context,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue