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
94a4ed79
authored
Mar 24, 2021
by
ibaker
Committed by
Ian Baker
Mar 24, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Treat Dolby Vision as H264 in MCVR#getCodecMaxInputSize()
Issue: #8705 PiperOrigin-RevId: 364821429
parent
e1fec35f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
RELEASENOTES.md
View file @
94a4ed79
...
...
@@ -36,6 +36,9 @@
object.
*
`Player.setPlaybackParameters`
no longer accepts null, use
`PlaybackParameters.DEFAULT`
instead.
*
Assume Dolby Vision content is encoded as H264 when calculating maximum
codec input size
(
[
#8705
](
https://github.com/google/ExoPlayer/issues/8705
)
).
*
HLS:
*
Fix issue that could cause playback to become stuck if corresponding
`EXT-X-DISCONTINUITY`
tags in different media playlists occur at
...
...
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
View file @
94a4ed79
...
...
@@ -1497,6 +1497,9 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
maxPixels
=
width
*
height
;
minCompressionRatio
=
2
;
break
;
case
MimeTypes
.
VIDEO_DOLBY_VISION
:
// Dolby vision can be a wrapper around H264 or H265. We assume H264 here because the
// minimum compression ratio is lower, meaning we overestimate the maximum input size.
case
MimeTypes
.
VIDEO_H264
:
if
(
"BRAVIA 4K 2015"
.
equals
(
Util
.
MODEL
)
// Sony Bravia 4K
||
(
"Amazon"
.
equals
(
Util
.
MANUFACTURER
)
...
...
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