Support encoding square videos.

PiperOrigin-RevId: 422585277
This commit is contained in:
claincly 2022-01-18 18:07:33 +00:00 committed by Ian Baker
parent 123a3c2731
commit 38cdbbffb4

View File

@ -105,7 +105,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
checkArgument(format.height != Format.NO_VALUE);
// According to interface Javadoc, format.rotationDegrees should be 0. The video should always
// be in landscape orientation.
checkArgument(format.height < format.width);
checkArgument(format.height <= format.width);
checkArgument(format.rotationDegrees == 0);
checkNotNull(format.sampleMimeType);
format = getVideoEncoderSupportedFormat(format);