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
795594f8
authored
May 17, 2021
by
olly
Committed by
Oliver Woodman
Jun 06, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update avcLevelToMaxFrameSize for AVCLevel6, 61 and 62
PiperOrigin-RevId: 374161340
parent
cfe28110
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.java
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.java
View file @
795594f8
...
@@ -841,9 +841,9 @@ public final class MediaCodecUtil {
...
@@ -841,9 +841,9 @@ public final class MediaCodecUtil {
/**
/**
* Conversion values taken from ISO 14496-10 Table A-1.
* Conversion values taken from ISO 14496-10 Table A-1.
*
*
* @param avcLevel
one of CodecProfileLevel.AVCLevel*
constants.
* @param avcLevel
One of the {@link CodecProfileLevel} {@code AVCLevel*}
constants.
* @return
maximum frame size that can be decoded by a decoder with the specified avc level
* @return
The maximum frame size that can be decoded by a decoder with the specified AVC level,
*
(or {@code -1} if the level is not recognized)
*
or {@code -1} if the level is not recognized.
*/
*/
private
static
int
avcLevelToMaxFrameSize
(
int
avcLevel
)
{
private
static
int
avcLevelToMaxFrameSize
(
int
avcLevel
)
{
switch
(
avcLevel
)
{
switch
(
avcLevel
)
{
...
@@ -873,6 +873,10 @@ public final class MediaCodecUtil {
...
@@ -873,6 +873,10 @@ public final class MediaCodecUtil {
case
CodecProfileLevel
.
AVCLevel51
:
case
CodecProfileLevel
.
AVCLevel51
:
case
CodecProfileLevel
.
AVCLevel52
:
case
CodecProfileLevel
.
AVCLevel52
:
return
36864
*
16
*
16
;
return
36864
*
16
*
16
;
case
CodecProfileLevel
.
AVCLevel6
:
case
CodecProfileLevel
.
AVCLevel61
:
case
CodecProfileLevel
.
AVCLevel62
:
return
139264
*
16
*
16
;
default
:
default
:
return
-
1
;
return
-
1
;
}
}
...
...
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