Commit 9942d42f by claincly Committed by Ian Baker

Support encoding square videos.

PiperOrigin-RevId: 422585277
parent e0aa6168
......@@ -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);
......
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