mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Support encoding square videos.
PiperOrigin-RevId: 422585277
This commit is contained in:
parent
123a3c2731
commit
38cdbbffb4
@ -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