mirror of
https://github.com/androidx/media.git
synced 2025-05-16 20:19:57 +08:00
Support encoding square videos.
PiperOrigin-RevId: 422585277
This commit is contained in:
parent
e0aa61681d
commit
9942d42f69
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user