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
f2e09536
authored
Mar 03, 2022
by
Rakesh Kumar
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Updated way to create a formatBuilder
Change-Id: I2c8eb8d6ee28d8c044d71db042f3b186ea5762f3
parent
f6a7ccea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/reader/RtpVP8Reader.java
libraries/exoplayer_rtsp/src/main/java/androidx/media3/exoplayer/rtsp/reader/RtpVP8Reader.java
View file @
f2e09536
...
@@ -97,11 +97,8 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
...
@@ -97,11 +97,8 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
data
.
setPosition
(
currPosition
);
data
.
setPosition
(
currPosition
);
if
(
width
!=
payloadFormat
.
format
.
width
||
height
!=
payloadFormat
.
format
.
height
)
{
if
(
width
!=
payloadFormat
.
format
.
width
||
height
!=
payloadFormat
.
format
.
height
)
{
Format
.
Builder
formatBuilder
=
new
Format
.
Builder
();
Format
trackFormat
=
payloadFormat
.
format
;
if
(
payloadFormat
.
format
.
bitrate
>
0
)
{
Format
.
Builder
formatBuilder
=
trackFormat
.
buildUpon
();
formatBuilder
.
setAverageBitrate
(
payloadFormat
.
format
.
bitrate
);
}
formatBuilder
.
setSampleMimeType
(
payloadFormat
.
format
.
sampleMimeType
);
formatBuilder
.
setWidth
(
width
).
setHeight
(
height
);
formatBuilder
.
setWidth
(
width
).
setHeight
(
height
);
trackOutput
.
format
(
formatBuilder
.
build
());
trackOutput
.
format
(
formatBuilder
.
build
());
}
}
...
...
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