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
192cdc66
authored
Oct 27, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Ignore secure decoders. They shouldn't be explicitly listed.
parent
067422a4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
library/src/main/java/com/google/android/exoplayer/MediaCodecUtil.java
library/src/main/java/com/google/android/exoplayer/MediaCodecUtil.java
View file @
192cdc66
...
@@ -76,7 +76,7 @@ public class MediaCodecUtil {
...
@@ -76,7 +76,7 @@ public class MediaCodecUtil {
for
(
int
i
=
0
;
i
<
numberOfCodecs
;
i
++)
{
for
(
int
i
=
0
;
i
<
numberOfCodecs
;
i
++)
{
MediaCodecInfo
info
=
MediaCodecList
.
getCodecInfoAt
(
i
);
MediaCodecInfo
info
=
MediaCodecList
.
getCodecInfoAt
(
i
);
String
codecName
=
info
.
getName
();
String
codecName
=
info
.
getName
();
if
(!
info
.
isEncoder
()
&&
isOmxCodec
(
codecName
))
{
if
(!
info
.
isEncoder
()
&&
codecName
.
startsWith
(
"OMX."
)
&&
!
codecName
.
endsWith
(
".secure"
))
{
String
[]
supportedTypes
=
info
.
getSupportedTypes
();
String
[]
supportedTypes
=
info
.
getSupportedTypes
();
for
(
int
j
=
0
;
j
<
supportedTypes
.
length
;
j
++)
{
for
(
int
j
=
0
;
j
<
supportedTypes
.
length
;
j
++)
{
String
supportedType
=
supportedTypes
[
j
];
String
supportedType
=
supportedTypes
[
j
];
...
@@ -91,10 +91,6 @@ public class MediaCodecUtil {
...
@@ -91,10 +91,6 @@ public class MediaCodecUtil {
return
null
;
return
null
;
}
}
private
static
boolean
isOmxCodec
(
String
name
)
{
return
name
.
startsWith
(
"OMX."
);
}
private
static
boolean
isAdaptive
(
CodecCapabilities
capabilities
)
{
private
static
boolean
isAdaptive
(
CodecCapabilities
capabilities
)
{
if
(
Util
.
SDK_INT
>=
19
)
{
if
(
Util
.
SDK_INT
>=
19
)
{
return
isAdaptiveV19
(
capabilities
);
return
isAdaptiveV19
(
capabilities
);
...
...
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