Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e0aa6168
authored
Jan 18, 2022
by
claincly
Committed by
Ian Baker
Jan 25, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Throw NPE instead of IAE when sampleMimeType is null.
PiperOrigin-RevId: 422550627
parent
7ba79cfa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/DefaultCodecFactory.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/DefaultCodecFactory.java
View file @
e0aa6168
...
...
@@ -101,14 +101,12 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
@Override
public
Codec
createForVideoEncoding
(
Format
format
)
throws
TransformationException
{
checkArgument
(
format
.
sampleMimeType
!=
null
);
checkArgument
(
format
.
width
!=
Format
.
NO_VALUE
);
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
.
rotationDegrees
==
0
);
// Checking again to silence null checker warning.
checkNotNull
(
format
.
sampleMimeType
);
format
=
getVideoEncoderSupportedFormat
(
format
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment