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
158e6de2
authored
Feb 12, 2021
by
kimvde
Committed by
Oliver Woodman
Feb 12, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add comment explaining Dolby Vision fallback logic
PiperOrigin-RevId: 357158075
parent
6afb669a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
View file @
158e6de2
...
@@ -377,7 +377,10 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
...
@@ -377,7 +377,10 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
mimeType
,
requiresSecureDecoder
,
requiresTunnelingDecoder
);
mimeType
,
requiresSecureDecoder
,
requiresTunnelingDecoder
);
decoderInfos
=
MediaCodecUtil
.
getDecoderInfosSortedByFormatSupport
(
decoderInfos
,
format
);
decoderInfos
=
MediaCodecUtil
.
getDecoderInfosSortedByFormatSupport
(
decoderInfos
,
format
);
if
(
MimeTypes
.
VIDEO_DOLBY_VISION
.
equals
(
mimeType
))
{
if
(
MimeTypes
.
VIDEO_DOLBY_VISION
.
equals
(
mimeType
))
{
// Fall back to H.264/AVC or H.265/HEVC for the relevant DV profiles.
// Fall back to H.264/AVC or H.265/HEVC for the relevant DV profiles. This can't be done for
// profile CodecProfileLevel.DolbyVisionProfileDvheStn and profile
// CodecProfileLevel.DolbyVisionProfileDvheDtb because the first one is not backward
// compatible and the second one is deprecated and is not always backward compatible.
@Nullable
@Nullable
Pair
<
Integer
,
Integer
>
codecProfileAndLevel
=
MediaCodecUtil
.
getCodecProfileAndLevel
(
format
);
Pair
<
Integer
,
Integer
>
codecProfileAndLevel
=
MediaCodecUtil
.
getCodecProfileAndLevel
(
format
);
if
(
codecProfileAndLevel
!=
null
)
{
if
(
codecProfileAndLevel
!=
null
)
{
...
...
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