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
6060b811
authored
Dec 19, 2018
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Relax audio decoder capability checks
Issue: #5145
parent
f6165f75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.java
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecInfo.java
View file @
6060b811
...
@@ -248,9 +248,15 @@ public final class MediaCodecInfo {
...
@@ -248,9 +248,15 @@ public final class MediaCodecInfo {
// If we don't know any better, we assume that the profile and level are supported.
// If we don't know any better, we assume that the profile and level are supported.
return
true
;
return
true
;
}
}
int
profile
=
codecProfileAndLevel
.
first
;
int
level
=
codecProfileAndLevel
.
second
;
if
(!
isVideo
&&
profile
!=
CodecProfileLevel
.
AACObjectXHE
)
{
// Some devices/builds under-report audio capabilities, so assume support except for xHE-AAC
// which is not widely supported. See https://github.com/google/ExoPlayer/issues/5145.
return
true
;
}
for
(
CodecProfileLevel
capabilities
:
getProfileLevels
())
{
for
(
CodecProfileLevel
capabilities
:
getProfileLevels
())
{
if
(
capabilities
.
profile
==
codecProfileAndLevel
.
first
if
(
capabilities
.
profile
==
profile
&&
capabilities
.
level
>=
level
)
{
&&
capabilities
.
level
>=
codecProfileAndLevel
.
second
)
{
return
true
;
return
true
;
}
}
}
}
...
...
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