mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Support encoding square videos.
PiperOrigin-RevId: 422585277
This commit is contained in:
parent
123a3c2731
commit
38cdbbffb4
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
||||||
checkArgument(format.height != Format.NO_VALUE);
|
checkArgument(format.height != Format.NO_VALUE);
|
||||||
// According to interface Javadoc, format.rotationDegrees should be 0. The video should always
|
// According to interface Javadoc, format.rotationDegrees should be 0. The video should always
|
||||||
// be in landscape orientation.
|
// be in landscape orientation.
|
||||||
checkArgument(format.height < format.width);
|
checkArgument(format.height <= format.width);
|
||||||
checkArgument(format.rotationDegrees == 0);
|
checkArgument(format.rotationDegrees == 0);
|
||||||
checkNotNull(format.sampleMimeType);
|
checkNotNull(format.sampleMimeType);
|
||||||
format = getVideoEncoderSupportedFormat(format);
|
format = getVideoEncoderSupportedFormat(format);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue