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
bcd0a91e
authored
Mar 02, 2021
by
andrewlewis
Committed by
marcbaechinger
Apr 09, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fall back from DTS HD to DTS
#minor-release PiperOrigin-RevId: 360384540
parent
85702480
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
RELEASENOTES.md
library/core/src/main/java/com/google/android/exoplayer2/audio/DefaultAudioSink.java
RELEASENOTES.md
View file @
bcd0a91e
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
(
[
#6384
](
https://github.com/google/ExoPlayer/issues/6384
)
).
(
[
#6384
](
https://github.com/google/ExoPlayer/issues/6384
)
).
*
Allow forcing offload for gapless content even if gapless playback is
*
Allow forcing offload for gapless content even if gapless playback is
not supported.
not supported.
*
Allow fall back from DTS-HD to DTS when playing via passthrough.
*
Analytics:
*
Analytics:
*
Add
`onAudioCodecError`
and
`onVideoCodecError`
to
`AnalyticsListener`
.
*
Add
`onAudioCodecError`
and
`onVideoCodecError`
to
`AnalyticsListener`
.
*
Downloads and caching:
*
Downloads and caching:
...
...
library/core/src/main/java/com/google/android/exoplayer2/audio/DefaultAudioSink.java
View file @
bcd0a91e
...
@@ -1482,6 +1482,10 @@ public final class DefaultAudioSink implements AudioSink {
...
@@ -1482,6 +1482,10 @@ public final class DefaultAudioSink implements AudioSink {
&&
!
audioCapabilities
.
supportsEncoding
(
C
.
ENCODING_E_AC3_JOC
))
{
&&
!
audioCapabilities
.
supportsEncoding
(
C
.
ENCODING_E_AC3_JOC
))
{
// E-AC3 receivers support E-AC3 JOC streams (but decode only the base layer).
// E-AC3 receivers support E-AC3 JOC streams (but decode only the base layer).
encoding
=
C
.
ENCODING_E_AC3
;
encoding
=
C
.
ENCODING_E_AC3
;
}
else
if
(
encoding
==
C
.
ENCODING_DTS_HD
&&
!
audioCapabilities
.
supportsEncoding
(
C
.
ENCODING_DTS_HD
))
{
// DTS receivers support DTS-HD streams (but decode only the core layer).
encoding
=
C
.
ENCODING_DTS
;
}
}
if
(!
audioCapabilities
.
supportsEncoding
(
encoding
))
{
if
(!
audioCapabilities
.
supportsEncoding
(
encoding
))
{
return
null
;
return
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